Fix JavaOptsScriptTest - regex update for Windows kc.home.dir path format (#39147)

Signed-off-by: Peter Zaoral <pzaoral@redhat.com>
This commit is contained in:
Peter Zaoral 2025-04-23 14:52:26 +02:00 committed by GitHub
parent 8778bff72c
commit db6516c291
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -129,7 +129,7 @@ public class JavaOptsScriptTest {
void testKcHomeDirPathFormat(LaunchResult result) {
String output = result.getOutput();
assertThat(output, containsString("kc.home.dir="));
assertThat(output, matchesPattern("(?s).*kc\\.home\\.dir=\"[A-Z]:/.*?/keycloak/quarkus/tests/integration/target/kc-tests/keycloak-\\d+\\.\\d+\\.\\d+.*?/bin/\\.\\.\".*"));
assertThat(output, matchesPattern("(?s).*kc\\.home\\.dir=\"[A-Z]:/.*/target/kc-tests/keycloak-\\d+\\.\\d+\\.\\d+.*?/bin/\\.\\.\".*"));
}
}