public class PodSelectionAssert extends Object
Modifier and Type | Field and Description |
---|---|
static long |
DEFAULT_NOT_READY_TIMEOUT_MS |
static long |
DEFAULT_READY_PERIOD_MS |
Constructor and Description |
---|
PodSelectionAssert(io.fabric8.kubernetes.client.KubernetesClient client,
Integer replicas,
Map<String,String> matchLabels,
List<io.fabric8.kubernetes.api.model.extensions.LabelSelectorRequirement> matchExpressions,
String description) |
Modifier and Type | Method and Description |
---|---|
io.fabric8.kubernetes.client.KubernetesClient |
getClient() |
String |
getDescription() |
List<io.fabric8.kubernetes.api.model.extensions.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()
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
|
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
|
public static final long DEFAULT_NOT_READY_TIMEOUT_MS
public static final long DEFAULT_READY_PERIOD_MS
public io.fabric8.kubernetes.client.KubernetesClient getClient()
public String getDescription()
public Integer getReplicas()
public List<io.fabric8.kubernetes.api.model.extensions.LabelSelectorRequirement> getMatchExpressions()
public PodSelectionAssert isPodReadyForPeriod()
public PodSelectionAssert isPodReadyForPeriod(long notReadyTimeoutMS, long readyPeriodMS)
public List<io.fabric8.kubernetes.api.model.Pod> getPods()
Copyright © 2011–2016 Red Hat. All rights reserved.