use of org.keycloak.it.junit5.extension.CLIResult in project keycloak by keycloak.
the class FeaturesDistTest method testEnableMultipleFeatures.
@Test
@Launch({ StartDev.NAME, "--features=token-exchange,admin-fine-grained-authz" })
public void testEnableMultipleFeatures(LaunchResult result) {
CLIResult cliResult = (CLIResult) result;
cliResult.assertStartedDevMode();
assertThat(cliResult.getOutput(), CoreMatchers.allOf(containsString("Preview feature enabled: admin_fine_grained_authz"), containsString("Preview feature enabled: token_exchange")));
assertFalse(cliResult.getOutput().contains("declarative-user-profile"));
}
use of org.keycloak.it.junit5.extension.CLIResult in project keycloak by keycloak.
the class StartDevCommandTest method testDevModeWarning.
@Test
@Launch({ "start-dev" })
void testDevModeWarning(LaunchResult result) {
CLIResult cliResult = (CLIResult) result;
cliResult.assertStartedDevMode();
}
use of org.keycloak.it.junit5.extension.CLIResult in project keycloak by keycloak.
the class BuildCommandDistTest method testFailRuntimeOptions.
@Test
@Launch({ "build", "--db=postgres", "--db-username=myuser", "--db-password=mypassword", "--http-enabled=true" })
void testFailRuntimeOptions(LaunchResult result) {
CLIResult cliResult = (CLIResult) result;
cliResult.assertError("Unknown options: '--db-username=myuser', '--db-password=mypassword', '--http-enabled=true'");
}
use of org.keycloak.it.junit5.extension.CLIResult in project keycloak by keycloak.
the class ExportDistTest method testExport.
@Test
@Launch({ "export", "--realm=master", "--dir=." })
void testExport(LaunchResult result) {
CLIResult cliResult = (CLIResult) result;
cliResult.assertMessage("Export of realm 'master' requested.");
cliResult.assertMessage("Export finished successfully");
}
use of org.keycloak.it.junit5.extension.CLIResult in project keycloak by keycloak.
the class LoggingDistTest method testSetRootLevel.
@Test
@Launch({ "start-dev", "--log-level=debug" })
void testSetRootLevel(LaunchResult result) {
CLIResult cliResult = (CLIResult) result;
assertTrue(cliResult.getOutput().contains("DEBUG [org.hibernate"));
cliResult.assertStartedDevMode();
}
Aggregations