feat(e2e-test): Add e2e-tests for zfs-localpv (#298)

Signed-off-by: w3aman <aman.gupta@mayadata.io>
This commit is contained in:
Aman Gupta 2021-06-09 21:21:39 +05:30 committed by GitHub
parent 53f872fcf1
commit 4e73638b5a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
137 changed files with 8745 additions and 0 deletions

View 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"