public class KubernetesAssert extends org.assertj.core.api.AbstractAssert<KubernetesAssert,io.fabric8.kubernetes.api.KubernetesClient>
Constructor and Description |
---|
KubernetesAssert(io.fabric8.kubernetes.api.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,
int port)
Asserts that the service can be found for the given ID and namespace and has a port of the given value
|
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
|
PodAssert |
pod(String podId)
Asserts that the pod can be found for the given ID
|
PodAssert |
pod(String podId,
String namespace)
Asserts that the pod can be found for the given ID and namespace
|
PodListAssert |
podList() |
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)
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)
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)
Asserts that the replication controller can be found for the given ID
|
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)
Asserts that the service can be found for the given ID
|
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)
Asserts that the service spec can be found for the given ID
|
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.api.KubernetesClient client)
public PodListAssert podList()
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)
public PodsAssert podsForReplicationController(String replicationControllerId, String namespace)
public PodsAssert podsForReplicationController(io.fabric8.kubernetes.api.model.ReplicationController replicationController)
public PodsAssert podsForService(String serviceId)
public PodsAssert podsForService(String serviceId, String namespace)
public PodsAssert podsForService(io.fabric8.kubernetes.api.model.Service service)
public ReplicationControllerAssert replicationController(String replicationControllerId)
public ReplicationControllerAssert replicationController(String replicationControllerId, String namespace)
protected io.fabric8.kubernetes.api.model.ReplicationController getReplicationController(String replicationControllerId, String namespace)
public ServiceAssert service(String serviceId)
public ServiceAssert service(String serviceId, String namespace)
public ServiceSpecAssert serviceSpec(String serviceId)
public void hasServicePort(String serviceId, String namespace, int port)
public void hasServicePort(String serviceId, 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.