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
16
e2e-tests/utils/k8s/create_ns.yml
Normal file
16
e2e-tests/utils/k8s/create_ns.yml
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
---
|
||||
- name: Obtain list of existing namespaces
|
||||
shell: >
|
||||
kubectl get ns --no-headers -o custom-columns=:metadata.name
|
||||
args:
|
||||
executable: /bin/bash
|
||||
register: ns_list
|
||||
|
||||
- name: Create test specific namespace.
|
||||
shell: kubectl create ns {{ app_ns }}
|
||||
args:
|
||||
executable: /bin/bash
|
||||
when: app_ns != 'e2e' and app_ns not in ns_list.stdout_lines
|
||||
|
||||
# Check status of namespace
|
||||
- include_tasks: /e2e-tests/utils/k8s/status_testns.yml
|
||||
Loading…
Add table
Add a link
Reference in a new issue