public class KubernetesAssert extends org.assertj.core.api.AbstractAssert<KubernetesAssert,io.fabric8.kubernetes.client.KubernetesClient>
Constructor and Description |
---|
KubernetesAssert(io.fabric8.kubernetes.client.KubernetesClient client) |
Modifier and Type | Method and Description |
---|---|
protected io.fabric8.kubernetes.api.model.Pod |
getPod(String podId,
String namespace) |
protected List<io.fabric8.kubernetes.api.model.Pod> |
getPods(String namespace) |
protected io.fabric8.kubernetes.api.model.ReplicationController |
getReplicationController(String replicationControllerId,
String namespace) |
protected io.fabric8.kubernetes.api.model.Service |
getService(String serviceId,
String namespace) |
protected io.fabric8.kubernetes.api.model.ServiceSpec |
getServiceSpec(String serviceId,
String namespace) |
void |
hasServicePort(String serviceId,
String namespace,
int port)
Asserts that the service can be found for the given ID and namespace and has a port of the given value
|
KubernetesNamespaceAssert |
namespace(String namespace) |
PodAssert |
pod(String podId,
String namespace)
Asserts that the pod can be found for the given ID and namespace
|
PodsAssert |
podList() |
PodsAssert |
podList(List<io.fabric8.kubernetes.api.model.Pod> pods) |
PodsAssert |
podList(io.fabric8.kubernetes.api.model.PodList pods) |
PodsAssert |
pods() |
PodsAssert |
pods(String namespace) |
PodsAssert |
podsForReplicationController(io.fabric8.kubernetes.api.model.ReplicationController replicationController)
Asserts that we can find the given replication controller and match it to a list of pods, returning the pods for further assertions
|
PodsAssert |
podsForReplicationController(String replicationControllerId,
String namespace)
Asserts that we can find the given replication controller and match it to a list of pods, returning the pods for further assertions
|
PodsAssert |
podsForService(io.fabric8.kubernetes.api.model.Service service)
Asserts that we can find the given service and match it to a list of pods, returning the pods for further assertions
|
PodsAssert |
podsForService(String serviceId,
String namespace)
Asserts that we can find the given service and match it to a list of pods, returning the pods for further assertions
|
ReplicationControllerAssert |
replicationController(String replicationControllerId,
String namespace)
Asserts that the replication controller can be found for the given ID and namespace.
|
ReplicationControllerListAssert |
replicationControllerList() |
ReplicationControllerListAssert |
replicationControllerList(String namespace) |
org.assertj.core.api.ListAssert<io.fabric8.kubernetes.api.model.ReplicationController> |
replicationControllers() |
org.assertj.core.api.ListAssert<io.fabric8.kubernetes.api.model.ReplicationController> |
replicationControllers(String namespace) |
ServiceAssert |
service(String serviceId,
String namespace)
Asserts that the service can be found for the given ID and namespace
|
ServiceListAssert |
serviceList() |
ServiceListAssert |
serviceList(String namespace) |
org.assertj.core.api.ListAssert<io.fabric8.kubernetes.api.model.Service> |
services() |
org.assertj.core.api.ListAssert<io.fabric8.kubernetes.api.model.Service> |
services(String namespace) |
ServiceSpecAssert |
serviceSpec(String serviceId,
String namespace)
Asserts that the service spec can be found for the given ID and namespace
|
as, as, describedAs, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, equals, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, inBinary, inHexadecimal, is, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, overridingErrorMessage, usingComparator, usingDefaultComparator
public KubernetesAssert(io.fabric8.kubernetes.client.KubernetesClient client)
public KubernetesNamespaceAssert namespace(String namespace)
public PodsAssert podList()
public PodsAssert podList(io.fabric8.kubernetes.api.model.PodList pods)
public PodsAssert podList(List<io.fabric8.kubernetes.api.model.Pod> pods)
public PodsAssert pods()
public PodsAssert pods(String namespace)
public ReplicationControllerListAssert replicationControllerList()
public ReplicationControllerListAssert replicationControllerList(String namespace)
public org.assertj.core.api.ListAssert<io.fabric8.kubernetes.api.model.ReplicationController> replicationControllers()
public org.assertj.core.api.ListAssert<io.fabric8.kubernetes.api.model.ReplicationController> replicationControllers(String namespace)
public ServiceListAssert serviceList()
public ServiceListAssert serviceList(String namespace)
public org.assertj.core.api.ListAssert<io.fabric8.kubernetes.api.model.Service> services()
public org.assertj.core.api.ListAssert<io.fabric8.kubernetes.api.model.Service> services(String namespace)
public PodsAssert podsForReplicationController(String replicationControllerId, String namespace)
public PodsAssert podsForReplicationController(io.fabric8.kubernetes.api.model.ReplicationController replicationController)
public PodsAssert podsForService(String serviceId, String namespace)
public PodsAssert podsForService(io.fabric8.kubernetes.api.model.Service service)
public ReplicationControllerAssert replicationController(String replicationControllerId, String namespace)
protected io.fabric8.kubernetes.api.model.ReplicationController getReplicationController(String replicationControllerId, String namespace)
public ServiceAssert service(String serviceId, String namespace)
public void hasServicePort(String serviceId, String namespace, int port)
public ServiceSpecAssert serviceSpec(String serviceId, String namespace)
protected io.fabric8.kubernetes.api.model.Service getService(String serviceId, String namespace)
protected io.fabric8.kubernetes.api.model.ServiceSpec getServiceSpec(String serviceId, String namespace)
public PodAssert pod(String podId, String namespace)
Copyright © 2011–2015 Red Hat. All rights reserved.