mirror of
https://github.com/TECHNOFAB11/zfs-localpv.git
synced 2025-12-13 23:03:57 +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
55
e2e-tests/apps/busybox/deployers/run_e2e_test.yml
Normal file
55
e2e-tests/apps/busybox/deployers/run_e2e_test.yml
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
---
|
||||
apiVersion: batch/v1
|
||||
kind: Job
|
||||
metadata:
|
||||
generateName: busybox-deploy-
|
||||
namespace: e2e
|
||||
spec:
|
||||
template:
|
||||
metadata:
|
||||
name: busybox-deploy
|
||||
labels:
|
||||
app: busybox
|
||||
spec:
|
||||
serviceAccountName: e2e
|
||||
restartPolicy: Never
|
||||
containers:
|
||||
- name: ansibletest
|
||||
image: openebs/zfs-localpv-e2e:ci
|
||||
imagePullPolicy: IfNotPresent
|
||||
env:
|
||||
- name: ANSIBLE_STDOUT_CALLBACK
|
||||
value: default
|
||||
|
||||
# Name of the storage class to use for volume provisioning
|
||||
- name: STORAGE_CLASS
|
||||
value: 'zfspv-sc'
|
||||
|
||||
# This is the namespace where busybox application will be deployed
|
||||
- name: APP_NAMESPACE
|
||||
value: 'busybox'
|
||||
|
||||
# Application label for busybox deployment/statefulset in `key=value` format
|
||||
- name: APP_LABEL
|
||||
value: 'app=busybox'
|
||||
|
||||
# Application PVC name
|
||||
- name: APP_PVC
|
||||
value: 'busybox-pvc'
|
||||
|
||||
# Persistent volume storage capacity (for e.g, 5Gi)
|
||||
- name: PV_CAPACITY
|
||||
value: '5Gi'
|
||||
|
||||
# Use: `statefuleset` to deploy busybox application as statefulset
|
||||
# Use: `deployment` to deploy busybox application as deployment
|
||||
- name: DEPLOY_TYPE
|
||||
value: 'deployment'
|
||||
|
||||
# Use: `provision` to deploy the application
|
||||
# Use: `deprovision` to deprovision the application
|
||||
- name: ACTION
|
||||
value: 'provision'
|
||||
|
||||
command: ["/bin/bash"]
|
||||
args: ["-c", "ansible-playbook ./e2e-tests/apps/busybox/deployers/test.yml -i /etc/ansible/hosts -v; exit 0"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue