use of org.keycloak.it.junit5.extension.CLIResult in project keycloak by keycloak.
the class FeaturesDistTest method testEnablePrecedenceOverDisable.
@Test
@Launch({ StartDev.NAME, "--features=preview", "--features-disabled=token-exchange" })
public void testEnablePrecedenceOverDisable(LaunchResult result) {
CLIResult cliResult = (CLIResult) result;
cliResult.assertStartedDevMode();
assertPreviewFeaturesEnabled((CLIResult) result);
}
use of org.keycloak.it.junit5.extension.CLIResult in project keycloak by keycloak.
the class StartDevCommandTest method testBuildPropertyAvailable.
@Test
@Launch({ "start-dev", "--db=dev-mem" })
void testBuildPropertyAvailable(LaunchResult result) {
CLIResult cliResult = (CLIResult) result;
cliResult.assertStartedDevMode();
}
use of org.keycloak.it.junit5.extension.CLIResult in project keycloak by keycloak.
the class ExportDistTest method testMissingDir.
@Test
@Launch({ "export", "--realm=master" })
void testMissingDir(LaunchResult result) {
CLIResult cliResult = (CLIResult) result;
cliResult.assertError("Must specify either --dir or --file options.");
}
use of org.keycloak.it.junit5.extension.CLIResult in project keycloak by keycloak.
the class LoggingDistTest method testSetLastRootLevelIfMultipleSet.
@Test
@Launch({ "start-dev", "--log-level=off,org.keycloak:warn,debug" })
void testSetLastRootLevelIfMultipleSet(LaunchResult result) {
CLIResult cliResult = (CLIResult) result;
assertTrue(cliResult.getOutput().contains("DEBUG [org.hibernate"));
assertFalse(cliResult.getOutput().contains("INFO [org.keycloak"));
cliResult.assertStartedDevMode();
}
use of org.keycloak.it.junit5.extension.CLIResult in project keycloak by keycloak.
the class QuarkusPropertiesDistTest method testBuildWithPropertyFromQuarkusProperties.
@Test
@Launch({ "build", "--cache=local" })
@Order(1)
void testBuildWithPropertyFromQuarkusProperties(LaunchResult result) {
CLIResult cliResult = (CLIResult) result;
assertFalse(cliResult.getOutput().contains("INFO"));
cliResult.assertBuild();
}
Aggregations