fix: ensuring placeholders can be used with --import-realm (#33589)
closes: #33578 Signed-off-by: Steve Hawkins <shawkins@redhat.com>
This commit is contained in:
parent
e7ad9ff2d6
commit
cb3954fc7b
3 changed files with 2 additions and 2 deletions
|
@ -26,7 +26,6 @@ import org.junit.jupiter.api.TestMethodOrder;
|
||||||
import org.keycloak.it.junit5.extension.CLIResult;
|
import org.keycloak.it.junit5.extension.CLIResult;
|
||||||
import org.keycloak.it.junit5.extension.DistributionTest;
|
import org.keycloak.it.junit5.extension.DistributionTest;
|
||||||
import org.keycloak.it.junit5.extension.RawDistOnly;
|
import org.keycloak.it.junit5.extension.RawDistOnly;
|
||||||
import org.keycloak.it.junit5.extension.WithEnvVars;
|
|
||||||
import org.keycloak.it.utils.KeycloakDistribution;
|
import org.keycloak.it.utils.KeycloakDistribution;
|
||||||
|
|
||||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"realm": "quickstart-realm",
|
"realm": "quickstart-realm",
|
||||||
"enabled": true,
|
"enabled": ${TEST_REALM_ENABLED:true},
|
||||||
"accessTokenLifespan": 60,
|
"accessTokenLifespan": 60,
|
||||||
"accessCodeLifespan": 60,
|
"accessCodeLifespan": 60,
|
||||||
"accessCodeLifespanUserAction": 300,
|
"accessCodeLifespanUserAction": 300,
|
||||||
|
|
|
@ -95,6 +95,7 @@ public class ExportImportManager {
|
||||||
if (dir == null) {
|
if (dir == null) {
|
||||||
throw new IllegalStateException("Import not enabled");
|
throw new IllegalStateException("Import not enabled");
|
||||||
}
|
}
|
||||||
|
ExportImportConfig.setReplacePlaceholders(true);
|
||||||
|
|
||||||
return getStartupImportProviders(dir).map(Supplier::get).anyMatch(provider -> {
|
return getStartupImportProviders(dir).map(Supplier::get).anyMatch(provider -> {
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in a new issue