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) |
protected List<io.fabric8.kubernetes.api.model.Pod> |
getPods() |
protected io.fabric8.kubernetes.api.model.ReplicationController |
getReplicationController(String replicationControllerId) |
protected io.fabric8.kubernetes.api.model.Service |
getService(String serviceId) |
PodAssert |
pod(String podId)
Asserts that the pod can be found for the given ID
|
PodListAssert |
podList() |
PodsAssert |
pods() |
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 |
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
|
ReplicationControllerAssert |
replicationController(String replicationControllerId)
Asserts that the replication controller can be found for the given ID
|
ReplicationControllerListAssert |
replicationControllerList() |
org.assertj.core.api.ListAssert<io.fabric8.kubernetes.api.model.ReplicationController> |
replicationControllers() |
ServiceAssert |
service(String serviceId)
Asserts that the service can be found for the given ID
|
ServiceListAssert |
serviceList() |
org.assertj.core.api.ListAssert<io.fabric8.kubernetes.api.model.Service> |
services() |
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()
protected List<io.fabric8.kubernetes.api.model.Pod> getPods()
public ReplicationControllerListAssert replicationControllerList()
public org.assertj.core.api.ListAssert<io.fabric8.kubernetes.api.model.ReplicationController> replicationControllers()
public ServiceListAssert serviceList()
public org.assertj.core.api.ListAssert<io.fabric8.kubernetes.api.model.Service> services()
public PodsAssert podsForReplicationController(String replicationControllerId)
public PodsAssert podsForReplicationController(io.fabric8.kubernetes.api.model.ReplicationController replicationController)
public PodsAssert podsForService(String serviceId)
public PodsAssert podsForService(io.fabric8.kubernetes.api.model.Service service)
public ReplicationControllerAssert replicationController(String replicationControllerId)
protected io.fabric8.kubernetes.api.model.ReplicationController getReplicationController(String replicationControllerId)
public ServiceAssert service(String serviceId)
protected io.fabric8.kubernetes.api.model.Service getService(String serviceId)
protected io.fabric8.kubernetes.api.model.Pod getPod(String podId)
Copyright © 2011–2015 Red Hat. All rights reserved.