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