use of org.keycloak.it.junit5.extension.CLIResult in project keycloak by keycloak.
the class StartAutoBuildDistTest method testStartDevFirstTime.
@Test
@Launch({ "start-dev" })
@Order(7)
void testStartDevFirstTime(LaunchResult result) {
CLIResult cliResult = (CLIResult) result;
assertTrue(cliResult.getOutput().contains("Updating the configuration and installing your custom providers, if any. Please wait."));
cliResult.assertStartedDevMode();
}
use of org.keycloak.it.junit5.extension.CLIResult in project keycloak by keycloak.
the class StartCommandDistTest method testStartUsingAutoBuild.
@Test
@Launch({ "start", "--auto-build", "--http-enabled=true", "--hostname-strict=false", "--cache=local" })
void testStartUsingAutoBuild(LaunchResult result) {
CLIResult cliResult = (CLIResult) result;
cliResult.assertMessage("Changes detected in configuration. Updating the server image.");
cliResult.assertMessage("Updating the configuration and installing your custom providers, if any. Please wait.");
cliResult.assertMessage("Server configuration updated and persisted. Run the following command to review the configuration:");
cliResult.assertMessage("kc.sh show-config");
cliResult.assertMessage("Next time you run the server, just run:");
cliResult.assertMessage("kc.sh start --http-enabled=true --hostname-strict=false");
assertFalse(cliResult.getOutput().contains("--cache"));
cliResult.assertStarted();
}
use of org.keycloak.it.junit5.extension.CLIResult in project keycloak by keycloak.
the class AbstractStartDabataseTest method testWrongPassword.
@Test
@Launch({ "start-dev", "--db-password=wrong" })
void testWrongPassword(LaunchResult result) {
CLIResult cliResult = (CLIResult) result;
cliResult.assertMessage("ERROR: Failed to obtain JDBC connection");
assertWrongPassword(cliResult);
}
use of org.keycloak.it.junit5.extension.CLIResult in project keycloak by keycloak.
the class AbstractStartDabataseTest method testWrongUsername.
@Test
@Launch({ "start-dev", "--db-username=wrong" })
void testWrongUsername(LaunchResult result) {
CLIResult cliResult = (CLIResult) result;
cliResult.assertMessage("ERROR: Failed to obtain JDBC connection");
assertWrongUsername(cliResult);
}
use of org.keycloak.it.junit5.extension.CLIResult in project keycloak by keycloak.
the class CustomTransactionDistTest method testNoXa.
@Test
@Launch({ "build", "--db=mssql", "--transaction-xa-enabled=false" })
void testNoXa(LaunchResult result) {
CLIResult cliResult = (CLIResult) result;
cliResult.assertBuild();
}
Aggregations