use of io.quarkus.test.junit.main.Launch in project keycloak by keycloak.
the class BuildAndStartDistTest method testStartUsingCliArgs.
@Test
@Launch({ "start", "--http-enabled=true", "--hostname-strict=false" })
@Order(2)
void testStartUsingCliArgs(LaunchResult result) {
CLIResult cliResult = (CLIResult) result;
cliResult.assertStarted();
cliResult.assertLocalCache();
}
use of io.quarkus.test.junit.main.Launch in project keycloak by keycloak.
the class ClusterConfigDistTest method testCustomCacheStackInConfigFile.
@Test
@BeforeStartDistribution(ConfigureCacheUsingAsyncEncryption.class)
@Launch({ "start-dev", "--cache-config-file=cache-ispn-asym-enc.xml" })
void testCustomCacheStackInConfigFile(LaunchResult result) {
CLIResult cliResult = (CLIResult) result;
assertTrue(cliResult.getOutput().contains("ERROR: server.jks"));
}
use of io.quarkus.test.junit.main.Launch in project keycloak by keycloak.
the class ClusterConfigDistTest method changeClusterSetting.
@Test
@Launch({ "start-dev", "--cache=ispn" })
void changeClusterSetting(LaunchResult result) {
CLIResult cliResult = (CLIResult) result;
cliResult.assertClusteredCache();
}
use of io.quarkus.test.junit.main.Launch in project keycloak by keycloak.
the class ClusterConfigDistTest method testStartDevDefaultsToLocalCaches.
@Test
@Launch({ "start-dev" })
void testStartDevDefaultsToLocalCaches(LaunchResult result) {
CLIResult cliResult = (CLIResult) result;
cliResult.assertStartedDevMode();
cliResult.assertLocalCache();
}
use of io.quarkus.test.junit.main.Launch in project keycloak by keycloak.
the class ClusterConfigDistTest method testWinStartDefaultsToClustering.
@Test
@EnabledOnOs(value = { OS.WINDOWS }, disabledReason = "different shell behaviour on Windows.")
@Launch({ "start", "--auto-build", "--log-level=\"info,org.infinispan.remoting.transport.jgroups.JGroupsTransport:debug", "--http-enabled=true\"", "--hostname-strict=false" })
void testWinStartDefaultsToClustering(LaunchResult result) {
CLIResult cliResult = (CLIResult) result;
cliResult.assertStarted();
cliResult.assertClusteredCache();
assertTrue(cliResult.getOutput().contains("JGroups protocol stack: UDP"));
}
Aggregations