mirror of
https://github.com/TECHNOFAB11/zfs-localpv.git
synced 2025-12-12 14:30: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
45
e2e-tests/hack/update_e2e_result_resource.yml
Normal file
45
e2e-tests/hack/update_e2e_result_resource.yml
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
---
|
||||
- block:
|
||||
- name: Generate the e2e result CR to reflect SOT (Start of Test)
|
||||
template:
|
||||
src: e2e-result.j2
|
||||
dest: e2e-result.yaml
|
||||
vars:
|
||||
test: "{{ test_name }}"
|
||||
phase: in-progress
|
||||
verdict: none
|
||||
|
||||
- name: Analyze the e2e cr yaml
|
||||
shell: cat e2e-result.yaml
|
||||
|
||||
- name: Apply the e2e result CR
|
||||
k8s:
|
||||
state: present
|
||||
src: e2e-result.yaml
|
||||
register: e2er_status
|
||||
failed_when: "e2er_status is failed"
|
||||
|
||||
when: status == "SOT"
|
||||
|
||||
- block:
|
||||
- name: Generate the e2e result CR to reflect EOT (End of Test)
|
||||
template:
|
||||
src: e2e-result.j2
|
||||
dest: e2e-result.yaml
|
||||
vars:
|
||||
test: "{{ test_name }}"
|
||||
phase: completed
|
||||
verdict: "{{ flag }}"
|
||||
|
||||
- name: Analyze the e2e cr yaml
|
||||
shell: cat e2e-result.yaml
|
||||
|
||||
- name: Apply the e2e result CR
|
||||
k8s:
|
||||
state: present
|
||||
src: e2e-result.yaml
|
||||
merge_type: merge
|
||||
register: e2er_status
|
||||
failed_when: "e2er_status is failed"
|
||||
|
||||
when: status == "EOT"
|
||||
Loading…
Add table
Add a link
Reference in a new issue