Search in sources :

Example 1 with BeforeStartDistribution

use of org.keycloak.it.junit5.extension.BeforeStartDistribution 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"));
}
Also used : CLIResult(org.keycloak.it.junit5.extension.CLIResult) Test(org.junit.jupiter.api.Test) DistributionTest(org.keycloak.it.junit5.extension.DistributionTest) BeforeStartDistribution(org.keycloak.it.junit5.extension.BeforeStartDistribution) Launch(io.quarkus.test.junit.main.Launch)

Example 2 with BeforeStartDistribution

use of org.keycloak.it.junit5.extension.BeforeStartDistribution in project keycloak by keycloak.

the class QuarkusPropertiesDistTest method testIgnoreQuarkusPropertyFromKeycloakConf.

@Test
@BeforeStartDistribution(DisableConsoleLogHandlerInKeycloakConf.class)
@Launch({ "build" })
@Order(5)
void testIgnoreQuarkusPropertyFromKeycloakConf(LaunchResult result) {
    CLIResult cliResult = (CLIResult) result;
    assertTrue(cliResult.getOutput().contains("INFO"));
    cliResult.assertBuild();
}
Also used : CLIResult(org.keycloak.it.junit5.extension.CLIResult) TestMethodOrder(org.junit.jupiter.api.TestMethodOrder) Order(org.junit.jupiter.api.Order) DistributionTest(org.keycloak.it.junit5.extension.DistributionTest) Test(org.junit.jupiter.api.Test) BeforeStartDistribution(org.keycloak.it.junit5.extension.BeforeStartDistribution) Launch(io.quarkus.test.junit.main.Launch)

Example 3 with BeforeStartDistribution

use of org.keycloak.it.junit5.extension.BeforeStartDistribution in project keycloak by keycloak.

the class BuildAndStartDistTest method testBuildUsingConfFile.

@Test
@BeforeStartDistribution(SetDefaultOptions.class)
@Launch({ "build" })
@Order(3)
void testBuildUsingConfFile(LaunchResult result) {
    CLIResult cliResult = (CLIResult) result;
    cliResult.assertBuild();
}
Also used : CLIResult(org.keycloak.it.junit5.extension.CLIResult) TestMethodOrder(org.junit.jupiter.api.TestMethodOrder) Order(org.junit.jupiter.api.Order) Test(org.junit.jupiter.api.Test) DistributionTest(org.keycloak.it.junit5.extension.DistributionTest) BeforeStartDistribution(org.keycloak.it.junit5.extension.BeforeStartDistribution) Launch(io.quarkus.test.junit.main.Launch)

Example 4 with BeforeStartDistribution

use of org.keycloak.it.junit5.extension.BeforeStartDistribution in project keycloak by keycloak.

the class QuarkusPropertiesAutoBuildDistTest method testReAugAfterChangingProperty.

@Test
@BeforeStartDistribution(EnableConsoleLogHandler.class)
@Launch({ "start", "--auto-build", "--http-enabled=true", "--hostname-strict=false", "--cache=local" })
@Order(3)
void testReAugAfterChangingProperty(LaunchResult result) {
    CLIResult cliResult = (CLIResult) result;
    cliResult.assertBuild();
    assertTrue(cliResult.getOutput().contains("INFO  [io.quarkus]"));
}
Also used : CLIResult(org.keycloak.it.junit5.extension.CLIResult) TestMethodOrder(org.junit.jupiter.api.TestMethodOrder) Order(org.junit.jupiter.api.Order) DistributionTest(org.keycloak.it.junit5.extension.DistributionTest) Test(org.junit.jupiter.api.Test) BeforeStartDistribution(org.keycloak.it.junit5.extension.BeforeStartDistribution) Launch(io.quarkus.test.junit.main.Launch)

Aggregations

Launch (io.quarkus.test.junit.main.Launch)4 Test (org.junit.jupiter.api.Test)4 BeforeStartDistribution (org.keycloak.it.junit5.extension.BeforeStartDistribution)4 CLIResult (org.keycloak.it.junit5.extension.CLIResult)4 DistributionTest (org.keycloak.it.junit5.extension.DistributionTest)4 Order (org.junit.jupiter.api.Order)3 TestMethodOrder (org.junit.jupiter.api.TestMethodOrder)3