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.PodSchema |
getPod(String podId) |
protected List<io.fabric8.kubernetes.api.model.PodSchema> |
getPods() |
protected io.fabric8.kubernetes.api.model.ReplicationControllerSchema |
getReplicationController(String replicationControllerId) |
protected io.fabric8.kubernetes.api.model.ServiceSchema |
getService(String serviceId) |
PodSchemaAssert |
pod(String podId)
Asserts that the pod can be found for the given ID
|
PodListSchemaAssert |
podList() |
PodsAssert |
pods() |
PodsAssert |
podsForReplicationController(io.fabric8.kubernetes.api.model.ReplicationControllerSchema 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.ServiceSchema 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
|
ReplicationControllerSchemaAssert |
replicationController(String replicationControllerId)
Asserts that the replication controller can be found for the given ID
|
ReplicationControllerListSchemaAssert |
replicationControllerList() |
org.assertj.core.api.ListAssert<io.fabric8.kubernetes.api.model.ReplicationControllerSchema> |
replicationControllers() |
ServiceSchemaAssert |
service(String serviceId)
Asserts that the service can be found for the given ID
|
ServiceListSchemaAssert |
serviceList() |
org.assertj.core.api.ListAssert<io.fabric8.kubernetes.api.model.ServiceSchema> |
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 PodListSchemaAssert podList()
public PodsAssert pods()
protected List<io.fabric8.kubernetes.api.model.PodSchema> getPods()
public ReplicationControllerListSchemaAssert replicationControllerList()
public org.assertj.core.api.ListAssert<io.fabric8.kubernetes.api.model.ReplicationControllerSchema> replicationControllers()
public ServiceListSchemaAssert serviceList()
public org.assertj.core.api.ListAssert<io.fabric8.kubernetes.api.model.ServiceSchema> services()
public PodsAssert podsForReplicationController(String replicationControllerId)
public PodsAssert podsForReplicationController(io.fabric8.kubernetes.api.model.ReplicationControllerSchema replicationController)
public PodsAssert podsForService(String serviceId)
public PodsAssert podsForService(io.fabric8.kubernetes.api.model.ServiceSchema service)
public ReplicationControllerSchemaAssert replicationController(String replicationControllerId)
protected io.fabric8.kubernetes.api.model.ReplicationControllerSchema getReplicationController(String replicationControllerId)
public ServiceSchemaAssert service(String serviceId)
protected io.fabric8.kubernetes.api.model.ServiceSchema getService(String serviceId)
public PodSchemaAssert pod(String podId)
protected io.fabric8.kubernetes.api.model.PodSchema getPod(String podId)
Copyright © 2011–2014 Red Hat. All rights reserved.