public class KubernetesNamespaceAssert extends KubernetesAssert
Constructor and Description |
---|
KubernetesNamespaceAssert(io.fabric8.kubernetes.client.KubernetesClient client,
String namespace) |
Modifier and Type | Method and Description |
---|---|
void |
hasServicePort(String serviceName,
int port)
Asserts that the service can be found for the given ID and namespace and has a port of the given value
|
String |
namespace() |
PodAssert |
pod(String podName) |
io.fabric8.kubernetes.api.model.Pod |
podForReplicationController(String replicationControllerName)
Returns the first running pod for the given replication controller or throws an assert
|
PodsAssert |
podList() |
PodsAssert |
pods() |
PodsAssert |
podsForReplicationController(String name)
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(String name)
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 name)
Asserts that the replication controller can be found for the given ID and namespace.
|
ReplicationControllerListAssert |
replicationControllerList() |
org.assertj.core.api.ListAssert<io.fabric8.kubernetes.api.model.ReplicationController> |
replicationControllers() |
ServiceAssert |
service(String name)
Asserts that the service can be found for the given ID and namespace
|
ServiceListAssert |
serviceList() |
org.assertj.core.api.ListAssert<io.fabric8.kubernetes.api.model.Service> |
services() |
ServiceSpecAssert |
serviceSpec(String serviceName) |
getPod, getPods, getReplicationController, getService, getServiceSpec, hasServicePort, namespace, pod, podList, podList, pods, podsForReplicationController, podsForReplicationController, podsForService, podsForService, replicationController, replicationControllerList, replicationControllers, service, serviceList, services, serviceSpec
as, as, asList, asString, describedAs, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, equals, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasToString, 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, withFailMessage, withThreadDumpOnError
public KubernetesNamespaceAssert(io.fabric8.kubernetes.client.KubernetesClient client, String namespace)
public String namespace()
public PodsAssert podList()
podList
in class KubernetesAssert
public PodsAssert pods()
pods
in class KubernetesAssert
public ReplicationControllerListAssert replicationControllerList()
replicationControllerList
in class KubernetesAssert
public org.assertj.core.api.ListAssert<io.fabric8.kubernetes.api.model.ReplicationController> replicationControllers()
replicationControllers
in class KubernetesAssert
public ServiceListAssert serviceList()
serviceList
in class KubernetesAssert
public org.assertj.core.api.ListAssert<io.fabric8.kubernetes.api.model.Service> services()
services
in class KubernetesAssert
public io.fabric8.kubernetes.api.model.Pod podForReplicationController(String replicationControllerName)
public PodsAssert podsForReplicationController(String name)
public PodsAssert podsForService(String name)
public ReplicationControllerAssert replicationController(String name)
public ServiceAssert service(String name)
public void hasServicePort(String serviceName, int port)
public ServiceSpecAssert serviceSpec(String serviceName)
Copyright © 2011–2016 Red Hat. All rights reserved.