Skip to content

Commit d855fcb

Browse files
authored
Add containterstatus check before dumping test-data in application (#199)
Signed-off-by: aman gupta <[email protected]>
1 parent 38245bd commit d855fcb

File tree

1 file changed

+11
-0
lines changed
  • e2e-tests/experiments/functional/lvm-volume-resize

1 file changed

+11
-0
lines changed

e2e-tests/experiments/functional/lvm-volume-resize/test.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,17 @@
122122
executable: /bin/bash
123123
register: app_pod_name
124124

125+
- name: Check container status in application pod
126+
shell: >
127+
kubectl get pod {{ app_pod_name.stdout }} -n {{ app_ns }} --no-headers
128+
-o jsonpath='{.status.containerStatuses[].state}'
129+
args:
130+
executable: /bin/bash
131+
register: containerStatus
132+
until: "'running' in containerStatus.stdout"
133+
delay: 2
134+
retries: 45
135+
125136
## Here we will dump +1Gi data than to previous pvc size
126137
- set_fact:
127138
value_num: '{{ ( (value_str.stdout | int + 1 | int) * 262144) | int }}'

0 commit comments

Comments
 (0)