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

OZG-6162 Fix helm tests

parent 71ed8e81
No related branches found
No related tags found
No related merge requests found
......@@ -242,13 +242,18 @@ spec:
- name: ozgcloud_notification_eingangsbestaetigung_replyAllowed
value: {{ quote (((.Values.ozgcloud).notification).eingangsbestaetigung).replyAllowed }}
{{- end }}
{{- if ((.Values.ozgcloud).xdomea).behoerdenschluessel }}
- name: ozgcloud_xdomea_behoerdenschluessel
value: {{ ((.Values.ozgcloud).xdomea).behoerdenschluessel | quote }}
{{- end }}
{{- if ((.Values.ozgcloud).xdomea).behoerdenschluesselUri }}
- name: ozgcloud_xdomea_behoerdenschluesselUri
value: {{ ((.Values.ozgcloud).xdomea).behoerdenschluesselUri}}
{{- end }}
{{- if ((.Values.ozgcloud).xdomea).behoerdenschluesselVersion }}
- name: ozgcloud_xdomea_behoerdenschluesselVersion
value: {{ ((.Values.ozgcloud).xdomea).behoerdenschluesselVersion | quote }}
{{- end }}
{{- if (.Values.ozgcloud).processors}}
{{- range $processor_index, $processor := (.Values.ozgcloud).processors }}
- name: ozgcloud_processors_{{ $processor_index }}_address
......
......@@ -35,7 +35,7 @@ set:
bezeichner: helm
imagePullSecret: test-image-pull-secret
tests:
- it: should not require on behoerdenschlüssel properties
- it: should not contain behoerdenschlüssel properties if values are missing
set:
# note: explicitly non-set behoerdenschlüssel properties
asserts:
......@@ -43,14 +43,17 @@ tests:
path: spec.template.spec.containers[0].env
content:
name: ozgcloud_xdomea_behoerdenschluessel
any: true
- notContains:
path: spec.template.spec.containers[0].env
content:
name: ozgcloud_xdomea_behoerdenschluesselUri
any: true
- notContains:
path: spec.template.spec.containers[0].env
content:
name: ozgcloud_xdomea_behoerdenschluesselVersion
any: true
- it: should set (optional) behoerdenschlüssel properties
set:
ozgcloud:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment