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

OZG-3034 OZG-6684 CR changes

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