Skip to content
Snippets Groups Projects
Commit 895f68ab authored by OZGCloud's avatar OZGCloud
Browse files

OZG-3328 use new helm unittest framework for xta adapter

parent 1d520f92
No related branches found
No related tags found
No related merge requests found
...@@ -4,4 +4,4 @@ set -e ...@@ -4,4 +4,4 @@ set -e
helm template ./src/main/helm/ -f src/main/helm/test-values.yaml helm template ./src/main/helm/ -f src/main/helm/test-values.yaml
helm lint -f src/test/helm/values/unit-values.yaml ./src/main/helm/ helm lint -f src/test/helm/values/unit-values.yaml ./src/main/helm/
cd src/main/helm && helm unittest --helm3 -f '../../test/helm/*.yaml' -v '../../test/helm/values/unit-values.yaml' . cd src/main/helm && helm unittest -f '../../test/helm/*.yaml' -v '../../test/helm/values/unit-values.yaml' .
\ No newline at end of file \ No newline at end of file
...@@ -49,7 +49,7 @@ tests: ...@@ -49,7 +49,7 @@ tests:
path: metadata.namespace path: metadata.namespace
value: helm-test value: helm-test
- isNotEmpty: - isNotEmpty:
path: data.[.dockerconfigjson] path: data[".dockerconfigjson"]
- it: should not create image pull secret - it: should not create image pull secret
set: set:
......
...@@ -44,6 +44,6 @@ tests: ...@@ -44,6 +44,6 @@ tests:
path: metadata.namespace path: metadata.namespace
value: helm-test value: helm-test
- equal: - equal:
path: data.[ca.crt] path: data["ca.crt"]
value: Z2VoZWltCg== value: Z2VoZWltCg==
...@@ -32,17 +32,17 @@ tests: ...@@ -32,17 +32,17 @@ tests:
- it: check dummy livenessProbe default disabled - it: check dummy livenessProbe default disabled
template: xta_adapter_cronjob.yaml template: xta_adapter_cronjob.yaml
asserts: asserts:
- isEmpty: - notExists:
path: spec.jobTemplate.spec.template.spec.containers[0].livenessProbe path: spec.jobTemplate.spec.template.spec.containers[0].livenessProbe
- it: check dummy startupProbe default disabled - it: check dummy startupProbe default disabled
template: xta_adapter_cronjob.yaml template: xta_adapter_cronjob.yaml
asserts: asserts:
- isEmpty: - notExists:
path: spec.jobTemplate.spec.template.spec.containers[0].startupProbe path: spec.jobTemplate.spec.template.spec.containers[0].startupProbe
- it: check dummy readynessProbe default disabled - it: check dummy readynessProbe default disabled
template: xta_adapter_cronjob.yaml template: xta_adapter_cronjob.yaml
asserts: asserts:
- isEmpty: - notExists:
path: spec.jobTemplate.spec.template.spec.containers[0].readinessProbe path: spec.jobTemplate.spec.template.spec.containers[0].readinessProbe
- it: check dummy livenessProbe disabled - it: check dummy livenessProbe disabled
...@@ -50,21 +50,21 @@ tests: ...@@ -50,21 +50,21 @@ tests:
set: set:
dummyProbesEnabled: false dummyProbesEnabled: false
asserts: asserts:
- isEmpty: - notExists:
path: spec.jobTemplate.spec.template.spec.containers[0].livenessProbe path: spec.jobTemplate.spec.template.spec.containers[0].livenessProbe
- it: check dummy startupProbe disabled - it: check dummy startupProbe disabled
template: xta_adapter_cronjob.yaml template: xta_adapter_cronjob.yaml
set: set:
dummyProbesEnabled: false dummyProbesEnabled: false
asserts: asserts:
- isEmpty: - notExists:
path: spec.jobTemplate.spec.template.spec.containers[0].startupProbe path: spec.jobTemplate.spec.template.spec.containers[0].startupProbe
- it: check dummy readynessProbe disabled - it: check dummy readynessProbe disabled
template: xta_adapter_cronjob.yaml template: xta_adapter_cronjob.yaml
set: set:
dummyProbesEnabled: false dummyProbesEnabled: false
asserts: asserts:
- isEmpty: - notExists:
path: spec.jobTemplate.spec.template.spec.containers[0].readinessProbe path: spec.jobTemplate.spec.template.spec.containers[0].readinessProbe
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment