use of org.keycloak.it.junit5.extension.CLIResult in project keycloak by keycloak.
the class ImportDistTest method testMissingDir.
@Test
@Order(2)
@Launch({ "import", "--dir=." })
void testMissingDir(LaunchResult result) {
CLIResult cliResult = (CLIResult) result;
cliResult.assertMessage("Realm 'master' imported");
cliResult.assertMessage("Import finished successfully");
}
use of org.keycloak.it.junit5.extension.CLIResult in project keycloak by keycloak.
the class ImportDistTest method testExport.
@Test
@Order(1)
@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 StartAutoBuildDistTest method testShouldReAugIfConfigChanged.
@Test
@Launch({ "start", "--auto-build", "--db=dev-mem", "--http-enabled=true", "--hostname-strict=false", "--cache=local" })
@Order(3)
void testShouldReAugIfConfigChanged(LaunchResult result) {
CLIResult cliResult = (CLIResult) result;
cliResult.assertBuild();
cliResult.assertStarted();
}
use of org.keycloak.it.junit5.extension.CLIResult in project keycloak by keycloak.
the class StartAutoBuildDistTest method testShouldNotReAugIfSameDatabase.
@Test
@Launch({ "start", "--auto-build", "--db=dev-mem", "--http-enabled=true", "--hostname-strict=false", "--cache=local" })
@Order(4)
void testShouldNotReAugIfSameDatabase(LaunchResult result) {
CLIResult cliResult = (CLIResult) result;
cliResult.assertNoBuild();
cliResult.assertStarted();
}
use of org.keycloak.it.junit5.extension.CLIResult in project keycloak by keycloak.
the class StartAutoBuildDistTest method testStartAutoBuild.
@Test
@Launch({ "start", "--auto-build", "--http-enabled=true", "--hostname-strict=false", "--cache=local" })
@Order(1)
void testStartAutoBuild(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();
}
Aggregations