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, serviceSpecas, 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, usingDefaultComparatorpublic KubernetesNamespaceAssert(io.fabric8.kubernetes.client.KubernetesClient client,
String namespace)
public String namespace()
public PodsAssert podList()
podList in class KubernetesAssertpublic PodsAssert pods()
pods in class KubernetesAssertpublic ReplicationControllerListAssert replicationControllerList()
replicationControllerList in class KubernetesAssertpublic org.assertj.core.api.ListAssert<io.fabric8.kubernetes.api.model.ReplicationController> replicationControllers()
replicationControllers in class KubernetesAssertpublic ServiceListAssert serviceList()
serviceList in class KubernetesAssertpublic org.assertj.core.api.ListAssert<io.fabric8.kubernetes.api.model.Service> services()
services in class KubernetesAssertpublic 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.