use of io.quarkus.test.junit.main.Launch 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 io.quarkus.test.junit.main.Launch in project keycloak by keycloak.
the class FeaturesDistTest method testEnablePreviewFeatures.
@Test
@Launch({ StartDev.NAME, "--features=preview" })
public void testEnablePreviewFeatures(LaunchResult result) {
CLIResult cliResult = (CLIResult) result;
cliResult.assertStartedDevMode();
assertPreviewFeaturesEnabled((CLIResult) result);
}
use of io.quarkus.test.junit.main.Launch 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 io.quarkus.test.junit.main.Launch in project keycloak by keycloak.
the class FeaturesDistTest method testEnableOnBuild.
@Test
@Launch({ Build.NAME, "--features=preview", "--cache=local" })
@Order(1)
public void testEnableOnBuild(LaunchResult result) {
CLIResult cliResult = (CLIResult) result;
cliResult.assertBuild();
assertPreviewFeaturesEnabled(cliResult);
}
use of io.quarkus.test.junit.main.Launch in project keycloak by keycloak.
the class FeaturesDistTest method testWinEnableMultipleFeatures.
@Test
@EnabledOnOs(value = { OS.WINDOWS }, disabledReason = "different shell escaping behaviour on Windows.")
@Launch({ StartDev.NAME, "--features=\"token-exchange,admin-fine-grained-authz\"" })
public void testWinEnableMultipleFeatures(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"));
}
Aggregations