Search in sources :

Example 16 with CLIResult

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

the class QuarkusPropertiesDistTest method testPropertyEnabledAtRuntime.

@Test
@Launch({ "start", "--http-enabled=true", "--hostname-strict=false" })
@Order(2)
void testPropertyEnabledAtRuntime(LaunchResult result) {
    CLIResult cliResult = (CLIResult) result;
    assertFalse(cliResult.getOutput().contains("INFO"));
}
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) Launch(io.quarkus.test.junit.main.Launch)

Example 17 with CLIResult

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

the class QuarkusPropertiesDistTest method testIgnoreQuarkusSystemPropertyAtBuild.

@Test
@Launch({ "-Dquarkus.log.console.enabled=true", "build" })
@Order(4)
void testIgnoreQuarkusSystemPropertyAtBuild(LaunchResult result) {
    CLIResult cliResult = (CLIResult) result;
    assertFalse(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) Launch(io.quarkus.test.junit.main.Launch)

Example 18 with CLIResult

use of org.keycloak.it.junit5.extension.CLIResult 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 19 with CLIResult

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

the class HelpCommandTest method testDefaultToHelp.

@Test
@Launch({})
void testDefaultToHelp(LaunchResult result) {
    CLIResult cliResult = (CLIResult) result;
    cliResult.assertHelp();
}
Also used : CLIResult(org.keycloak.it.junit5.extension.CLIResult) Test(org.junit.jupiter.api.Test) CLITest(org.keycloak.it.junit5.extension.CLITest) Launch(io.quarkus.test.junit.main.Launch)

Example 20 with CLIResult

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

the class AbstractStartDabataseTest method testSuccessful.

@Test
@Launch({ "start-dev" })
void testSuccessful(LaunchResult result) {
    CLIResult cliResult = (CLIResult) result;
    cliResult.assertStartedDevMode();
}
Also used : CLIResult(org.keycloak.it.junit5.extension.CLIResult) Test(org.junit.jupiter.api.Test) Launch(io.quarkus.test.junit.main.Launch)

Aggregations

Launch (io.quarkus.test.junit.main.Launch)56 Test (org.junit.jupiter.api.Test)56 CLIResult (org.keycloak.it.junit5.extension.CLIResult)56 DistributionTest (org.keycloak.it.junit5.extension.DistributionTest)41 Order (org.junit.jupiter.api.Order)23 TestMethodOrder (org.junit.jupiter.api.TestMethodOrder)23 CLITest (org.keycloak.it.junit5.extension.CLITest)12 BeforeStartDistribution (org.keycloak.it.junit5.extension.BeforeStartDistribution)4 StartCommandTest (org.keycloak.it.cli.StartCommandTest)1