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
57
e2e-tests/apps/busybox/liveness/run_e2e_test.yml
Normal file
57
e2e-tests/apps/busybox/liveness/run_e2e_test.yml
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
---
|
||||
apiVersion: batch/v1
|
||||
kind: Job
|
||||
metadata:
|
||||
generateName: busybox-liveness-
|
||||
namespace: e2e
|
||||
spec:
|
||||
activeDeadlineSeconds: 5400
|
||||
template:
|
||||
metadata:
|
||||
name: busybox-liveness
|
||||
namespace: e2e
|
||||
labels:
|
||||
liveness: busybox-liveness
|
||||
|
||||
# label used for mass-liveness check upon infra-chaos
|
||||
infra-aid: liveness
|
||||
|
||||
spec:
|
||||
serviceAccountName: e2e
|
||||
restartPolicy: Never
|
||||
|
||||
containers:
|
||||
- name: ansibletest
|
||||
image: openebs/zfs-localpv-e2e:ci
|
||||
imagePullPolicy: IfNotPresent
|
||||
env:
|
||||
- name: ANSIBLE_STDOUT_CALLBACK
|
||||
value: default
|
||||
|
||||
- name: MY_POD_NAME
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: metadata.name
|
||||
|
||||
- name: LIVENESS_TIMEOUT_SECONDS
|
||||
value: "10"
|
||||
|
||||
# number of retries when livenss-fails
|
||||
- name: LIVENESS_RETRY_COUNT
|
||||
value: "5"
|
||||
|
||||
# This is the namespace where busybox application is running
|
||||
- name: APP_NAMESPACE
|
||||
value: 'busybox'
|
||||
|
||||
# Application label for busybox in `key=value` format
|
||||
- name: APP_LABEL
|
||||
value: 'app=busybox'
|
||||
|
||||
# Use: `provision` to apply the liveness-probe checks for busybox application
|
||||
# Use: `deprovision` to deprovision the liveness-probe
|
||||
- name: ACTION
|
||||
value: 'provision'
|
||||
|
||||
command: ["/bin/bash"]
|
||||
args: ["-c", "ansible-playbook ./e2e-tests/apps/busybox/liveness/test.yml -i /etc/ansible/hosts -v; exit 0"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue