public class KubernetesExtension extends Object implements org.junit.jupiter.api.extension.ExecutionCondition, org.junit.jupiter.api.extension.BeforeAllCallback, org.junit.jupiter.api.extension.AfterAllCallback, org.junit.jupiter.api.extension.TestWatcher, WithKubernetesIntegrationTestConfig, WithPod, WithKubernetesClient, WithKubernetesResources, WithEvents, WithProject, WithKubernetesConfig, WithImageConfig
DEFAULT_KUBERNETES_INTEGRATION_TEST_CONFIGKUBERNETES_CONFIG_PATHCLOSABLESEXTENSION_ERROR, READINESS_FAILEDKUBERNETES_CLIENTPROJECT_YML, PROJECTSMANIFEST_PATHCONFIG_DIR, KUBERNETES_YMLCONFIG_DIR, CONFIG_YML| Constructor and Description |
|---|
KubernetesExtension() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterAll(org.junit.jupiter.api.extension.ExtensionContext context) |
void |
beforeAll(org.junit.jupiter.api.extension.ExtensionContext context) |
org.junit.jupiter.api.extension.ConditionEvaluationResult |
evaluateExecutionCondition(org.junit.jupiter.api.extension.ExtensionContext context) |
String[] |
getAdditionalModules(org.junit.jupiter.api.extension.ExtensionContext context) |
String |
getName(org.junit.jupiter.api.extension.ExtensionContext context)
Returns the configured name.
|
void |
postProcessTestInstance(Object testInstance,
org.junit.jupiter.api.extension.ExtensionContext context) |
void |
testFailed(org.junit.jupiter.api.extension.ExtensionContext context,
Throwable throwable) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittestAborted, testDisabled, testSuccessfulgetKubernetesIntegrationTestConfiginjectPod, namedAnnotation, podForNamegetBaseConfig, getBaseConfigcloseAll, getCloseablesdisplayDiagnostics, extensionError, hasExtensionError, hasReadinessFailed, readinessFailed, shouldDisplayDiagnosticscloseKubernetesClient, deleteAndWait, deleteAndWait, getKubernetesClient, injectKubernetesClient, waitUntilConditiongetProjectsfromManifest, getKubernetesResources, injectKubernetesResourcesgetEventsgetKubernetesConfig, getKubernetesConfig, getKubernetesConfigPath, hasKubernetesConfiggetImageConfig, hasImageConfig, streampublic org.junit.jupiter.api.extension.ConditionEvaluationResult evaluateExecutionCondition(org.junit.jupiter.api.extension.ExtensionContext context)
evaluateExecutionCondition in interface org.junit.jupiter.api.extension.ExecutionConditionpublic void beforeAll(org.junit.jupiter.api.extension.ExtensionContext context)
throws Exception
beforeAll in interface org.junit.jupiter.api.extension.BeforeAllCallbackExceptionpublic void postProcessTestInstance(Object testInstance, org.junit.jupiter.api.extension.ExtensionContext context)
postProcessTestInstance in interface WithKubernetesResourcespostProcessTestInstance in interface WithKubernetesClientpostProcessTestInstance in interface WithPodpostProcessTestInstance in interface org.junit.jupiter.api.extension.TestInstancePostProcessorpublic void testFailed(org.junit.jupiter.api.extension.ExtensionContext context,
Throwable throwable)
testFailed in interface org.junit.jupiter.api.extension.TestWatcherpublic void afterAll(org.junit.jupiter.api.extension.ExtensionContext context)
afterAll in interface org.junit.jupiter.api.extension.AfterAllCallbackpublic String[] getAdditionalModules(org.junit.jupiter.api.extension.ExtensionContext context)
getAdditionalModules in interface WithProjectCopyright © 2018–2022 Red Hat. All rights reserved.