Annotation Interface WithKubernetesTestServer
@QuarkusTestResource(value=KubernetesServerTestResource.class,
restrictToAnnotatedClass=true)
@Retention(RUNTIME)
@Target(TYPE)
public @interface WithKubernetesTestServer
Use on your test resource to get a mock
KubernetesServer spawn up, and injectable with KubernetesTestServer.
This annotation is only active when used on a test class, and only for this test class.-
Nested Class Summary
Nested Classes -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanStart it in CRUD modebooleanStart it with HTTPSintPort to use, defaults to any available portSetup class to call after the mock server is created, for custom setup.
-
Element Details
-
https
boolean httpsStart it with HTTPS- Default:
- false
-
crud
boolean crudStart it in CRUD mode- Default:
- true
-
port
int portPort to use, defaults to any available port- Default:
- 0
-
setup
Setup class to call after the mock server is created, for custom setup.- Default:
- io.quarkus.test.kubernetes.client.WithKubernetesTestServer.NO_SETUP.class
-