public class PodSelectionAssert extends AbstractPodSelectionAssert
DEFAULT_NOT_READY_TIMEOUT_MS, DEFAULT_READY_PERIOD_MS, PROPERTY_ASSERT_NOT_READY_TIMEOUT_MILLIS, PROPERTY_ASSERT_READY_PERIOD_MILLIS
Constructor and Description |
---|
PodSelectionAssert(io.fabric8.kubernetes.client.KubernetesClient client,
Integer replicas,
Map<String,String> matchLabels,
List<io.fabric8.kubernetes.api.model.LabelSelectorRequirement> matchExpressions,
String description) |
Modifier and Type | Method and Description |
---|---|
io.fabric8.kubernetes.client.KubernetesClient |
getClient() |
String |
getDescription() |
List<io.fabric8.kubernetes.api.model.LabelSelectorRequirement> |
getMatchExpressions() |
Map<String,String> |
getMatchLabels() |
List<io.fabric8.kubernetes.api.model.Pod> |
getPods()
Loads the current pods for this selection
|
Integer |
getReplicas() |
PodSelectionAssert |
isPodReadyForPeriod(long notReadyTimeoutMS,
long readyPeriodMS)
Asserts that a pod is ready for this deployment all become ready within the given time and that each one keeps being ready for the given time
|
getDefaultNotReadyTimeoutMs, getDefaultReadyPeriodMs, isPodReadyForPeriod
public io.fabric8.kubernetes.client.KubernetesClient getClient()
public String getDescription()
public Integer getReplicas()
public List<io.fabric8.kubernetes.api.model.LabelSelectorRequirement> getMatchExpressions()
public PodSelectionAssert isPodReadyForPeriod(long notReadyTimeoutMS, long readyPeriodMS)
isPodReadyForPeriod
in class AbstractPodSelectionAssert
public List<io.fabric8.kubernetes.api.model.Pod> getPods()
getPods
in class AbstractPodSelectionAssert
Copyright © 2020. All rights reserved.