Skip to content

Commit

Permalink
Add containterstatus check before dumping test-data in application (#199
Browse files Browse the repository at this point in the history
)

Signed-off-by: aman gupta <[email protected]>
  • Loading branch information
w3aman authored Jul 6, 2022
1 parent 38245bd commit d855fcb
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions e2e-tests/experiments/functional/lvm-volume-resize/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,17 @@
executable: /bin/bash
register: app_pod_name

- name: Check container status in application pod
shell: >
kubectl get pod {{ app_pod_name.stdout }} -n {{ app_ns }} --no-headers
-o jsonpath='{.status.containerStatuses[].state}'
args:
executable: /bin/bash
register: containerStatus
until: "'running' in containerStatus.stdout"
delay: 2
retries: 45

## Here we will dump +1Gi data than to previous pvc size
- set_fact:
value_num: '{{ ( (value_str.stdout | int + 1 | int) * 262144) | int }}'
Expand Down

0 comments on commit d855fcb

Please sign in to comment.