diff --git a/src/main/java/dasniko/testcontainers/keycloak/ExtendableKeycloakContainer.java b/src/main/java/dasniko/testcontainers/keycloak/ExtendableKeycloakContainer.java index 2026003..4d7860e 100644 --- a/src/main/java/dasniko/testcontainers/keycloak/ExtendableKeycloakContainer.java +++ b/src/main/java/dasniko/testcontainers/keycloak/ExtendableKeycloakContainer.java @@ -186,13 +186,13 @@ protected void configure() { }); } + commandParts.add("--import-realm"); if (!importFiles.isEmpty()) { for (String importFile : importFiles) { // TODO: a strategy for files with the same name but in the different dirs String importFileInContainer = DEFAULT_REALM_IMPORT_FILES_LOCATION + FilenameUtils.getName(importFile); withCopyFileToContainer(MountableFile.forClasspathResource(importFile), importFileInContainer); } - commandParts.add("--import-realm"); } /* caching is disabled per default in dev-mode, thus we overwrite that config, unless #withDisabledCaching() has been called */