summaryrefslogtreecommitdiffstats
path: root/cds-regression-test/init-mockserver-job.yml
diff options
context:
space:
mode:
Diffstat (limited to 'cds-regression-test/init-mockserver-job.yml')
-rw-r--r--cds-regression-test/init-mockserver-job.yml42
1 files changed, 42 insertions, 0 deletions
diff --git a/cds-regression-test/init-mockserver-job.yml b/cds-regression-test/init-mockserver-job.yml
new file mode 100644
index 0000000..0b60687
--- /dev/null
+++ b/cds-regression-test/init-mockserver-job.yml
@@ -0,0 +1,42 @@
+apiVersion: batch/v1
+kind: Job
+metadata:
+ name: init-mockserver
+spec:
+ template:
+ metadata:
+ spec:
+ containers:
+ - command:
+ - /bin/bash
+ - -c
+ # Add your init.yaml scripts below
+ - >
+ tar -xvf /regression-test-files/files.tar.gz &&
+ . ./$TEST_DIRECTORY/reset-verify-mockserver.sh &&
+ . ./$TEST_DIRECTORY/resource-resolution/init-mockserver.sh &&
+ . ./$TEST_DIRECTORY/remote-ansible/init-mockserver.sh &&
+ . ./$TEST_DIRECTORY/ansible-python-dg/init-mockserver.sh
+ image: registry-dev.nso.lab-services.ca/nso-platform-onap-cds-regression-image:latest
+ name: init-mockserver
+ resources: {}
+ volumeMounts:
+ - name: regression-test-files
+ mountPath: /regression-test-files
+ env:
+ - name: TEST_DIRECTORY
+ valueFrom:
+ configMapKeyRef:
+ name: regression-env
+ key: TEST_DIRECTORY
+ - name: MOCKSERVER_URL
+ valueFrom:
+ configMapKeyRef:
+ name: regression-env
+ key: MOCKSERVER_URL
+ restartPolicy: Never
+ volumes:
+ - name: regression-test-files
+ configMap:
+ name: regression-test-files
+status: {}