use of io.quarkus.test.junit.main.Launch 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;
cliResult.assertBuild();
}
use of io.quarkus.test.junit.main.Launch in project keycloak by keycloak.
the class QuarkusPropertiesDistTest method testIgnoreQuarkusSystemPropertyAtBuild.
@Test
@Launch({ "-Dquarkus.log.console.level=info", "build" })
@Order(4)
void testIgnoreQuarkusSystemPropertyAtBuild(LaunchResult result) {
CLIResult cliResult = (CLIResult) result;
assertFalse(cliResult.getOutput().contains("INFO"));
cliResult.assertBuild();
}
use of io.quarkus.test.junit.main.Launch in project keycloak by keycloak.
the class QuarkusPropertiesDistTest method buildFirstWithUnknownQuarkusBuildProperty.
@Test
@BeforeStartDistribution(UpdateHibernateMetricsFromQuarkusProps.class)
@Launch({ "build", "--metrics-enabled=true" })
@Order(8)
void buildFirstWithUnknownQuarkusBuildProperty(LaunchResult result) {
CLIResult cliResult = (CLIResult) result;
cliResult.assertBuild();
}
use of io.quarkus.test.junit.main.Launch in project keycloak by keycloak.
the class QuarkusPropertiesDistTest method testUnknownQuarkusBuildTimePropertyApplied.
@Test
@KeepServerAlive
@Launch({ "start", "--http-enabled=true", "--hostname-strict=false" })
@Order(9)
void testUnknownQuarkusBuildTimePropertyApplied(LaunchResult result) {
CLIResult cliResult = (CLIResult) result;
cliResult.assertNoBuild();
when().get("/metrics").then().statusCode(200).body(containsString("vendor_hibernate_cache_query_plan_total"));
}
use of io.quarkus.test.junit.main.Launch 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();
}
Aggregations