public class PodsAssert
extends org.assertj.core.api.ListAssert<io.fabric8.kubernetes.api.model.Pod>
Constructor and Description |
---|
PodsAssert(List<io.fabric8.kubernetes.api.model.Pod> actual,
io.fabric8.kubernetes.client.KubernetesClient client) |
Modifier and Type | Method and Description |
---|---|
org.assertj.core.api.IntegerAssert |
assertSize()
Returns an assertion on the size of the list
|
protected static PodsAssert |
assertThat(Iterable<io.fabric8.kubernetes.api.model.Pod> result,
io.fabric8.kubernetes.client.KubernetesClient client) |
PodsAssert |
errorStatus()
Returns the filtered list of pods which have error status
|
PodsAssert |
filter(org.assertj.core.api.Condition<io.fabric8.kubernetes.api.model.Pod> condition) |
PodsAssert |
filterLabel(String key,
String value)
Filters the pods using the given label key and value
|
PodsAssert |
filterNamespace(String namespace)
Filters the pods using the given namespace
|
List<io.fabric8.kubernetes.api.model.Pod> |
get()
Returns the underlying actual value
|
PodLogsAssert |
logs()
Returns an assertion on the logs of the pods
|
PodLogsAssert |
logs(String containerName)
Returns an assertion on the logs of the pods for the given container name
|
PodsAssert |
runningStatus()
Returns the filtered list of pods which have running status
|
PodsAssert |
waitingStatus()
Returns the filtered list of pods which have waiting status
|
contains, doesNotContain, has, is, isSorted, isSortedAccordingTo, usingComparisonStrategy, usingDefaultElementComparator, usingElementComparator
are, areAtLeast, areAtLeastOne, areAtMost, areExactly, areNot, contains, containsAll, containsExactly, containsExactlyElementsOf, containsNull, containsOnly, containsOnlyElementsOf, containsOnlyOnce, containsSequence, containsSubsequence, doesNotContain, doesNotContainAnyElementsOf, doesNotContainNull, doesNotHaveDuplicates, doNotHave, endsWith, extracting, extracting, extracting, extracting, extractingResultOf, extractingResultOf, flatExtracting, hasAtLeastOneElementOfType, hasOnlyElementsOfType, hasSameElementsAs, hasSameSizeAs, hasSameSizeAs, hasSize, have, haveAtLeast, haveAtLeastOne, haveAtMost, haveExactly, inBinary, inHexadecimal, isEmpty, isNotEmpty, isNullOrEmpty, isSubsetOf, startsWith, usingElementComparatorIgnoringFields, usingElementComparatorOnFields, usingFieldByFieldElementComparator
as, as, describedAs, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, equals, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, is, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, overridingErrorMessage, usingComparator, usingDefaultComparator
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
are, areAtLeast, areAtLeastOne, areAtMost, areExactly, areNot, contains, containsAll, containsExactly, containsNull, containsOnly, containsOnlyOnce, containsSequence, containsSubsequence, doesNotContain, doesNotContainNull, doesNotHaveDuplicates, doNotHave, endsWith, hasAtLeastOneElementOfType, hasOnlyElementsOfType, have, haveAtLeast, haveAtLeastOne, haveAtMost, haveExactly, startsWith
public PodsAssert(List<io.fabric8.kubernetes.api.model.Pod> actual, io.fabric8.kubernetes.client.KubernetesClient client)
public PodsAssert filter(org.assertj.core.api.Condition<io.fabric8.kubernetes.api.model.Pod> condition)
public org.assertj.core.api.IntegerAssert assertSize()
public List<io.fabric8.kubernetes.api.model.Pod> get()
public PodLogsAssert logs()
public PodLogsAssert logs(String containerName)
public PodsAssert filterLabel(String key, String value)
public PodsAssert filterNamespace(String namespace)
public PodsAssert runningStatus()
public PodsAssert waitingStatus()
public PodsAssert errorStatus()
protected static PodsAssert assertThat(Iterable<io.fabric8.kubernetes.api.model.Pod> result, io.fabric8.kubernetes.client.KubernetesClient client)
Copyright © 2011–2015 Red Hat. All rights reserved.