public class KubernetesServer
extends org.junit.rules.ExternalResource
| Constructor and Description |
|---|
KubernetesServer() |
KubernetesServer(boolean https) |
KubernetesServer(boolean https,
boolean crudMode) |
KubernetesServer(boolean https,
boolean crudMode,
InetAddress address,
int port,
List<CustomResourceDefinitionContext> crdContextList) |
KubernetesServer(boolean https,
boolean crudMode,
List<CustomResourceDefinitionContext> crdContextList) |
| Modifier and Type | Method and Description |
|---|---|
void |
after() |
void |
before() |
io.fabric8.mockwebserver.dsl.MockServerExpectation |
expect() |
<T> void |
expectAndReturnAsJson(String path,
int code,
T body)
Deprecated.
|
<T> void |
expectAndReturnAsJson(String method,
String path,
int code,
T body)
Deprecated.
|
void |
expectAndReturnAsString(String path,
int code,
String body)
Deprecated.
|
void |
expectAndReturnAsString(String method,
String path,
int code,
String body)
Deprecated.
|
NamespacedKubernetesClient |
getClient() |
okhttp3.mockwebserver.RecordedRequest |
getLastRequest() |
okhttp3.mockwebserver.MockWebServer |
getMockServer() |
public KubernetesServer()
public KubernetesServer(boolean https)
public KubernetesServer(boolean https,
boolean crudMode)
public KubernetesServer(boolean https,
boolean crudMode,
List<CustomResourceDefinitionContext> crdContextList)
public KubernetesServer(boolean https,
boolean crudMode,
InetAddress address,
int port,
List<CustomResourceDefinitionContext> crdContextList)
public void before()
before in class org.junit.rules.ExternalResourcepublic void after()
after in class org.junit.rules.ExternalResourcepublic NamespacedKubernetesClient getClient()
public io.fabric8.mockwebserver.dsl.MockServerExpectation expect()
@Deprecated public <T> void expectAndReturnAsJson(String path, int code, T body)
@Deprecated public void expectAndReturnAsString(String path, int code, String body)
@Deprecated public <T> void expectAndReturnAsJson(String method, String path, int code, T body)
@Deprecated public void expectAndReturnAsString(String method, String path, int code, String body)
public okhttp3.mockwebserver.MockWebServer getMockServer()
public okhttp3.mockwebserver.RecordedRequest getLastRequest()
throws InterruptedException
InterruptedExceptionCopyright © 2015–2022 Red Hat. All rights reserved.