From e033132d06f4a715848ec13ddc1480689af0fec3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Muzik=C3=A1=C5=99?= Date: Wed, 3 Jul 2024 12:14:19 +0200 Subject: [PATCH] Fix tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Václav Muzikář --- .../java/org/keycloak/it/cli/dist/BuildAndStartDistTest.java | 2 +- .../src/test/java/org/keycloak/it/cli/dist/FipsDistTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/quarkus/tests/integration/src/test/java/org/keycloak/it/cli/dist/BuildAndStartDistTest.java b/quarkus/tests/integration/src/test/java/org/keycloak/it/cli/dist/BuildAndStartDistTest.java index 633b5db15540..8a2c5c3fcbee 100644 --- a/quarkus/tests/integration/src/test/java/org/keycloak/it/cli/dist/BuildAndStartDistTest.java +++ b/quarkus/tests/integration/src/test/java/org/keycloak/it/cli/dist/BuildAndStartDistTest.java @@ -83,7 +83,7 @@ void testCreateDifferentAdmin(KeycloakDistribution dist, LaunchResult result) { } private void assertAdminCreation(KeycloakDistribution dist, LaunchResult result, String initialUsername, String nextUsername, String password) { - assertTrue(result.getOutput().contains("Added temporary admin user '" + initialUsername + "' to realm 'master'"), + assertTrue(result.getOutput().contains("Created temporary admin user with username " + initialUsername), () -> "The Output:\n" + result.getOutput() + "doesn't contains the expected string."); dist.setEnvVar("KEYCLOAK_ADMIN", nextUsername); diff --git a/quarkus/tests/integration/src/test/java/org/keycloak/it/cli/dist/FipsDistTest.java b/quarkus/tests/integration/src/test/java/org/keycloak/it/cli/dist/FipsDistTest.java index 673a343877e2..d2630e935d37 100644 --- a/quarkus/tests/integration/src/test/java/org/keycloak/it/cli/dist/FipsDistTest.java +++ b/quarkus/tests/integration/src/test/java/org/keycloak/it/cli/dist/FipsDistTest.java @@ -72,7 +72,7 @@ void testFipsApprovedModePasswordSucceeds(KeycloakDistribution dist) { cliResult.assertStarted(); cliResult.assertMessage("Java security providers: [ \n" + " KC(" + BCFIPS_VERSION + " Approved Mode, FIPS-JVM: " + KeycloakFipsSecurityProvider.isSystemFipsEnabled() + ") version 1.0 - class org.keycloak.crypto.fips.KeycloakFipsSecurityProvider"); - cliResult.assertMessage("Added user 'admin' to realm 'master'"); + cliResult.assertMessage("Created temporary admin user with username admin"); }); }