Skip to content

Commit

Permalink
test: Fix issue with realm import
Browse files Browse the repository at this point in the history
The file had the wrong name. The import mechanism assumes that the file
follows the pattern <realm name>-realm.json. In our case <realm name> is
'test-realm', so the correct filename is test-realm-realm.json and not
test-realm.json.

Signed-off-by: Sven-Torben Janus <[email protected]>
  • Loading branch information
sventorben committed Jan 15, 2025
1 parent c13ebfd commit 60f5c4e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class ClientPolicyIT {
private static final KeycloakContainer KEYCLOAK_CONTAINER = FullImageName.createContainer()
.withExposedPorts(KEYCLOAK_HTTP_PORT)
.withLogConsumer(new Slf4jLogConsumer(LOGGER).withSeparateOutputStreams())
.withRealmImportFile("/test-realm.json")
.withRealmImportFile("/test-realm-realm.json")
.withStartupTimeout(Duration.ofSeconds(90));

@BeforeAll
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class LoginIT {
private static final KeycloakContainer KEYCLOAK_CONTAINER = FullImageName.createContainer()
.withExposedPorts(KEYCLOAK_HTTP_PORT)
.withLogConsumer(new Slf4jLogConsumer(LOGGER).withSeparateOutputStreams())
.withRealmImportFile("/test-realm.json")
.withRealmImportFile("/test-realm-realm.json")
.withStartupTimeout(Duration.ofSeconds(90));

@BeforeAll
Expand Down
File renamed without changes.

0 comments on commit 60f5c4e

Please sign in to comment.