mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Add test for wait with 0 timeout
This commit is contained in:
parent
8d67437865
commit
b0fb79364a
@ -105,11 +105,14 @@ EOF
|
||||
output_message_1=$(kubectl wait \
|
||||
--for='jsonpath=spec.template.spec.containers[?(@.name=="busybox")].image=busybox' \
|
||||
deploy/test-3)
|
||||
# Command: Wait with jsonpath without value with check-once behavior
|
||||
output_message_2=$(kubectl wait --for=jsonpath='{.status.replicas}' deploy/test-3 --timeout=0 2>&1)
|
||||
set -o errexit
|
||||
|
||||
# Post-Condition: Wait succeed
|
||||
kube::test::if_has_string "${output_message_0}" 'deployment.apps/test-3 condition met'
|
||||
kube::test::if_has_string "${output_message_1}" 'deployment.apps/test-3 condition met'
|
||||
kube::test::if_has_string "${output_message_2}" 'deployment.apps/test-3 condition met'
|
||||
|
||||
# Clean deployment
|
||||
kubectl delete deployment test-3
|
||||
|
Loading…
Reference in New Issue
Block a user