Skip to content
Snippets Groups Projects
Commit 67f111cc authored by OZGCloud's avatar OZGCloud
Browse files

OZG-3034 OZG-6684 CR changes

parent f4247710
No related branches found
No related tags found
No related merge requests found
......@@ -29,13 +29,15 @@ release:
templates:
- templates/deployment.yaml
set:
baseUrl: test.sh.ozg-cloud.de
ozgcloud:
environment: dev
bezeichner: helm
imagePullSecret: test-image-pull-secret
tests:
- it: should set the alfa host
set:
baseUrl: test.sh.ozg-cloud.de
ozgcloud:
bezeichner: helm
asserts:
- contains:
path: spec.template.spec.containers[0].env
......@@ -44,6 +46,9 @@ tests:
value: https://helm.test.sh.ozg-cloud.de
- it: should use alfa host from values
set:
baseUrl: test.sh.ozg-cloud.de
ozgcloud:
bezeichner: helm
alfaHost: https://hamburg.mein-kreis.de
asserts:
- contains:
......@@ -51,3 +56,16 @@ tests:
content:
name: ozgcloud_alfa_host
value: https://hamburg.mein-kreis.de
- it: should fail if bezeichner is not set
set:
baseUrl: test.sh.ozg-cloud.de
asserts:
- failedTemplate:
errorMessage: "ozgcloud.bezeichner must be set"
- it: should fail if base url is not set
set:
ozgcloud:
bezeichner: helm
asserts:
- failedTemplate:
errorMessage: "baseUrl must be set"
......@@ -31,36 +31,19 @@ templates:
set:
baseUrl: test.sh.ozg-cloud.de
ozgcloud:
environment: dev
bezeichner: helm
imagePullSecret: test-image-pull-secret
tests:
- it: should fail on missing environment
set:
ozgcloud:
environment:
imagePullSecret: test-image-pull-secret
asserts:
- failedTemplate:
errorMessage: ozgcloud.environment must be set
- it: should fail on missing imagePullSecret
set:
imagePullSecret:
asserts:
- failedTemplate:
errorMessage: imagePullSecret must be set
- it: should fail if bezeichner is not set
- it: should not fail on not missing environment and not missing imagepullsecret
set:
ozgcloud:
bezeichner:
asserts:
- failedTemplate:
errorMessage: "ozgcloud.bezeichner must be set"
- it: should fail if base url is not set
set:
baseUrl:
asserts:
- failedTemplate:
errorMessage: "baseUrl must be set"
- it: should not fail on not missing required values
environment: dev
imagePullSecret: test-image-pull-secret
asserts:
- notFailedTemplate: {}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment