mirror of
https://github.com/keycloak/keycloak.git
synced 2026-05-23 09:49:44 -05:00
Do not use general debug log level for tests (#26242)
Closes #26241 Signed-off-by: Martin Bartoš <mabartos@redhat.com>
This commit is contained in:
Vendored
+1
-1
@@ -88,7 +88,7 @@ public class BuildAndStartDistTest {
|
||||
|
||||
dist.setEnvVar("KEYCLOAK_ADMIN", nextUsername);
|
||||
dist.setEnvVar("KEYCLOAK_ADMIN_PASSWORD", password);
|
||||
CLIResult cliResult = dist.run("start-dev", "--log-level=debug");
|
||||
CLIResult cliResult = dist.run("start-dev", "--log-level=org.keycloak.services:debug");
|
||||
|
||||
cliResult.assertMessage("Skipping create admin user. Admin already exists in realm 'master'.");
|
||||
cliResult.assertStartedDevMode();
|
||||
|
||||
+5
-12
@@ -74,20 +74,13 @@ public class LoggingDistTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
@Launch({ "start-dev", "--log-level=off,org.keycloak:warn,debug" })
|
||||
@Launch({ "start-dev", "--log-level=off,org.keycloak:warn,warn" })
|
||||
void testSetLastRootLevelIfMultipleSet(LaunchResult result) {
|
||||
CLIResult cliResult = (CLIResult) result;
|
||||
assertTrue(cliResult.getOutput().contains("DEBUG [io.netty.util.internal"));
|
||||
assertFalse(cliResult.getOutput().contains("INFO [org.keycloak"));
|
||||
cliResult.assertStartedDevMode();
|
||||
}
|
||||
|
||||
@Test
|
||||
@Launch({ "start-dev", "--log-level=off,org.keycloak:warn,debug" })
|
||||
void testWinSetLastRootLevelIfMultipleSet(LaunchResult result) {
|
||||
CLIResult cliResult = (CLIResult) result;
|
||||
assertTrue(cliResult.getOutput().contains("DEBUG [io.netty.util.internal"));
|
||||
assertFalse(cliResult.getOutput().contains("INFO [org.keycloak"));
|
||||
assertFalse(cliResult.getOutput().contains("INFO"));
|
||||
assertFalse(cliResult.getOutput().contains("DEBUG"));
|
||||
assertFalse(cliResult.getOutput().contains("Listening on:"));
|
||||
assertTrue(cliResult.getOutput().contains("WARN [org.keycloak"));
|
||||
cliResult.assertStartedDevMode();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user