mirror of
https://github.com/TECHNOFAB11/zfs-localpv.git
synced 2025-12-12 22:40:12 +01:00
feat(e2e-test): Add e2e-tests for zfs-localpv (#298)
Signed-off-by: w3aman <aman.gupta@mayadata.io>
This commit is contained in:
parent
53f872fcf1
commit
4e73638b5a
137 changed files with 8745 additions and 0 deletions
18
e2e-tests/utils/k8s/status_app_pod.yml
Normal file
18
e2e-tests/utils/k8s/status_app_pod.yml
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
---
|
||||
- name: Checking {{ application_name }} pod is in running state
|
||||
shell: kubectl get pods -n {{ app_ns }} -o jsonpath='{.items[?(@.metadata.labels.{{app_lkey}}=="{{app_lvalue}}")].status.phase}'
|
||||
register: result
|
||||
until: "((result.stdout.split()|unique)|length) == 1 and 'Running' in result.stdout"
|
||||
delay: 3
|
||||
retries: 60
|
||||
|
||||
- name: Get the container status of application.
|
||||
shell: >
|
||||
kubectl get pod -n {{ app_ns }} -l {{app_lkey}}="{{app_lvalue}}"
|
||||
-o custom-columns=:..containerStatuses[].state --no-headers | grep -w "running"
|
||||
args:
|
||||
executable: /bin/bash
|
||||
register: containerStatus
|
||||
until: "'running' in containerStatus.stdout"
|
||||
delay: 3
|
||||
retries: 60
|
||||
Loading…
Add table
Add a link
Reference in a new issue