diff --git a/src/main/helm/templates/deployment.yaml b/src/main/helm/templates/deployment.yaml index 6061a25cd4f7c1ef1d88d330c311c5e2f78dde75..4a23b3e047bba3fd91fef3b3d2ce3f165661e1a1 100644 --- a/src/main/helm/templates/deployment.yaml +++ b/src/main/helm/templates/deployment.yaml @@ -278,9 +278,13 @@ spec: - name: ozgcloud_feature_bescheid_kielHackathonRoute value: {{ quote (((.Values.ozgcloud).feature).bescheid).kielHackathonRoute }} {{- end }} - {{- if (((.Values.ozgcloud).notification).eingangsbestaetigung).replyAllowed }} - - name: ozgcloud_notification_eingangsbestaetigung_replyAllowed - value: {{ quote (((.Values.ozgcloud).notification).eingangsbestaetigung).replyAllowed }} + {{- if (((.Values.ozgcloud).notification).eingangsbestaetigung).forms }} + {{- range $i, $item := (((.Values.ozgcloud).notification).eingangsbestaetigung).forms }} + {{- range $key, $value := $item }} + - name: ozgcloud_notification_eingangsbestaetigung_forms_{{ printf "%d_%s" $i $key | replace "." "_" | replace "-" "" }} + value: {{ quote $value }} + {{- end }} + {{- end }} {{- end }} {{- if ((.Values.ozgcloud).xdomea).behoerdenschluessel }} - name: ozgcloud_xdomea_behoerdenschluessel diff --git a/src/test/helm/deployment_env_test.yaml b/src/test/helm/deployment_env_test.yaml index 2a98ced7a604f37a24d566fc1de958738e3feef7..dff307461b6ef6bd13e0e96f0c87eca95c284046 100644 --- a/src/test/helm/deployment_env_test.yaml +++ b/src/test/helm/deployment_env_test.yaml @@ -148,10 +148,53 @@ tests: ozgcloud: notification: eingangsbestaetigung: - replyAllowed: true + forms: + - formEngineName: AFM + formId: 'Baumfaell*23' + antragstellerNotification: false + - formEngineName: 'AF?' + formId: '*genehmigung45' + addPrimaryPdf: false + - formEngineName: AFM + allowReplyByAntragsteller: true asserts: - contains: path: spec.template.spec.containers[0].env content: - name: ozgcloud_notification_eingangsbestaetigung_replyAllowed + name: ozgcloud_notification_eingangsbestaetigung_forms_0_formEngineName + value: "AFM" + - contains: + path: spec.template.spec.containers[0].env + content: + name: ozgcloud_notification_eingangsbestaetigung_forms_0_formId + value: "Baumfaell*23" + - contains: + path: spec.template.spec.containers[0].env + content: + name: ozgcloud_notification_eingangsbestaetigung_forms_0_antragstellerNotification + value: "false" + - contains: + path: spec.template.spec.containers[0].env + content: + name: ozgcloud_notification_eingangsbestaetigung_forms_1_formEngineName + value: "AF?" + - contains: + path: spec.template.spec.containers[0].env + content: + name: ozgcloud_notification_eingangsbestaetigung_forms_1_formId + value: "*genehmigung45" + - contains: + path: spec.template.spec.containers[0].env + content: + name: ozgcloud_notification_eingangsbestaetigung_forms_1_addPrimaryPdf + value: "false" + - contains: + path: spec.template.spec.containers[0].env + content: + name: ozgcloud_notification_eingangsbestaetigung_forms_2_formEngineName + value: "AFM" + - contains: + path: spec.template.spec.containers[0].env + content: + name: ozgcloud_notification_eingangsbestaetigung_forms_2_allowReplyByAntragsteller value: "true" \ No newline at end of file