Skip to content
Snippets Groups Projects
Commit 783c74ec authored by OZGCloud's avatar OZGCloud
Browse files

Extend helm test for features

parent c20e287f
Branches
Tags
No related merge requests found
...@@ -53,13 +53,13 @@ tests: ...@@ -53,13 +53,13 @@ tests:
content: content:
name: ozgcloud_feature_organisationsEinheiten name: ozgcloud_feature_organisationsEinheiten
any: true any: true
- it: should set (optional) feature properties - it: should set (optional) feature properties to true
set: set:
ozgcloud: ozgcloud:
feature: feature:
postfach: true postfach: "true"
benutzerRollen: true benutzerRollen: "true"
organisationsEinheiten: true organisationsEinheiten: "true"
asserts: asserts:
- contains: - contains:
path: spec.template.spec.containers[0].env path: spec.template.spec.containers[0].env
...@@ -76,3 +76,26 @@ tests: ...@@ -76,3 +76,26 @@ tests:
content: content:
name: ozgcloud_feature_organisationsEinheiten name: ozgcloud_feature_organisationsEinheiten
value: "true" value: "true"
- it: should set (optional) feature properties to false
set:
ozgcloud:
feature:
postfach: "false"
benutzerRollen: "false"
organisationsEinheiten: "false"
asserts:
- contains:
path: spec.template.spec.containers[0].env
content:
name: ozgcloud_feature_postfach
value: "false"
- contains:
path: spec.template.spec.containers[0].env
content:
name: ozgcloud_feature_benutzerRollen
value: "false"
- contains:
path: spec.template.spec.containers[0].env
content:
name: ozgcloud_feature_organisationsEinheiten
value: "false"
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment