@Target(value={TYPE,METHOD,ANNOTATION_TYPE}) @Retention(value=RUNTIME) @ExtendWith(value=NamespaceExtension.class) @ExtendWith(value=KubernetesExtension.class) public @interface KubernetesTest
KubernetesExtension extension.
Creates a KubernetesClient instance that will
be automatically injected into tests.
Optionally, creates a Namespace for the tests and configures the client to use it. The Namespace is deleted after the test suite execution.
@KubernetesTest
class MyTest {
KubernetesClient client;
static OpenShiftClient oc;
}
| Modifier and Type | Optional Element and Description |
|---|---|
boolean |
createEphemeralNamespace
Create an ephemeral Namespace for the test.
|
Copyright © 2015–2024 Red Hat. All rights reserved.