Package org.wildfly.test.cloud.common
Class WildFlyKubernetesExtension
- java.lang.Object
-
- io.dekorate.testing.kubernetes.KubernetesExtension
-
- org.wildfly.test.cloud.common.WildFlyKubernetesExtension
-
- All Implemented Interfaces:
io.dekorate.testing.kubernetes.WithKubernetesConfig,io.dekorate.testing.kubernetes.WithKubernetesIntegrationTestConfig,io.dekorate.testing.kubernetes.WithKubernetesResources,io.dekorate.testing.WithBaseConfig,io.dekorate.testing.WithClosables,io.dekorate.testing.WithDiagnostics,io.dekorate.testing.WithEvents,io.dekorate.testing.WithImageConfig,io.dekorate.testing.WithIntegrationTestConfig,io.dekorate.testing.WithKubernetesClient,io.dekorate.testing.WithPod,io.dekorate.testing.WithProject,org.junit.jupiter.api.extension.AfterAllCallback,org.junit.jupiter.api.extension.BeforeAllCallback,org.junit.jupiter.api.extension.ExecutionCondition,org.junit.jupiter.api.extension.Extension,org.junit.jupiter.api.extension.TestInstancePostProcessor,org.junit.jupiter.api.extension.TestWatcher
public class WildFlyKubernetesExtension extends io.dekorate.testing.kubernetes.KubernetesExtension- Author:
- Kabir Khan
-
-
Field Summary
-
Fields inherited from interface io.dekorate.testing.WithDiagnostics
EXTENSION_ERROR, READINESS_FAILED
-
Fields inherited from interface io.dekorate.testing.kubernetes.WithKubernetesConfig
CONFIG_DIR, KUBERNETES_YML
-
Fields inherited from interface io.dekorate.testing.kubernetes.WithKubernetesIntegrationTestConfig
DEFAULT_INTEGRATION_TEST_CONFIG
-
-
Constructor Summary
Constructors Constructor Description WildFlyKubernetesExtension()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterAll(org.junit.jupiter.api.extension.ExtensionContext context)voidbeforeAll(org.junit.jupiter.api.extension.ExtensionContext context)org.wildfly.test.cloud.common.WildFlyKubernetesIntegrationTestConfiggetKubernetesIntegrationTestConfig(org.junit.jupiter.api.extension.ExtensionContext context)voidpostProcessTestInstance(Object testInstance, org.junit.jupiter.api.extension.ExtensionContext context)-
Methods inherited from class io.dekorate.testing.kubernetes.KubernetesExtension
evaluateExecutionCondition, getAdditionalModules, getName, testFailed
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.junit.jupiter.api.extension.TestWatcher
testAborted, testDisabled, testSuccessful
-
Methods inherited from interface io.dekorate.testing.WithDiagnostics
displayDiagnostics, extensionError, hasExtensionError, hasReadinessFailed, readinessFailed, shouldDisplayDiagnostics
-
Methods inherited from interface io.dekorate.testing.WithImageConfig
getImageConfig, hasImageConfig, stream
-
Methods inherited from interface io.dekorate.testing.WithIntegrationTestConfig
getAdditionalModulesFromProperties, getBuildEnabledFromProperties, getDeployEnabledFromProperties, getReadinessTimeoutFromProperties
-
Methods inherited from interface io.dekorate.testing.WithKubernetesClient
closeKubernetesClient, deleteAndWait, deleteAndWait, getKubernetesClient, injectKubernetesClient, waitUntilCondition
-
Methods inherited from interface io.dekorate.testing.kubernetes.WithKubernetesConfig
getKubernetesConfig, getKubernetesConfig, getKubernetesConfigPath, hasKubernetesConfig
-
-
-
-
Method Detail
-
getKubernetesIntegrationTestConfig
public org.wildfly.test.cloud.common.WildFlyKubernetesIntegrationTestConfig getKubernetesIntegrationTestConfig(org.junit.jupiter.api.extension.ExtensionContext context)
-
beforeAll
public void beforeAll(org.junit.jupiter.api.extension.ExtensionContext context) throws Exception- Specified by:
beforeAllin interfaceorg.junit.jupiter.api.extension.BeforeAllCallback- Overrides:
beforeAllin classio.dekorate.testing.kubernetes.KubernetesExtension- Throws:
Exception
-
afterAll
public void afterAll(org.junit.jupiter.api.extension.ExtensionContext context)
- Specified by:
afterAllin interfaceorg.junit.jupiter.api.extension.AfterAllCallback- Overrides:
afterAllin classio.dekorate.testing.kubernetes.KubernetesExtension
-
postProcessTestInstance
public void postProcessTestInstance(Object testInstance, org.junit.jupiter.api.extension.ExtensionContext context)
- Specified by:
postProcessTestInstancein interfaceorg.junit.jupiter.api.extension.TestInstancePostProcessor- Specified by:
postProcessTestInstancein interfaceio.dekorate.testing.WithKubernetesClient- Specified by:
postProcessTestInstancein interfaceio.dekorate.testing.kubernetes.WithKubernetesResources- Specified by:
postProcessTestInstancein interfaceio.dekorate.testing.WithPod- Overrides:
postProcessTestInstancein classio.dekorate.testing.kubernetes.KubernetesExtension
-
-