Skip to content
Snippets Groups Projects
Commit 9a203123 authored by Felix Reichenbach's avatar Felix Reichenbach
Browse files

OZG-6741 configure zufi searchUri via helm

parent 433cf5e8
Branches
Tags
1 merge request!1Ozg 6741 organisationseinheit link
......@@ -123,6 +123,10 @@ spec:
- name: ozgcloud_feature_organisationsEinheiten
value: {{ .Values.ozgcloud.feature.organisationsEinheiten | quote }}
{{- end }}
{{- if eq ((.Values.ozgcloud).feature).organisationsEinheiten "true" }}
- name: ozgcloud_organisationseinheit_zufisucheuri
value: {{ required "ozgcloud.organisationsEinheit.zufiSearchUri must be set if feature organisationsEinheiten is activated" ((.Values.ozgcloud).organisationsEinheit).zufiSearchUri}}
{{- end }}
envFrom:
{{- if (.Values.database).useExternal }}
- secretRef:
......
......@@ -60,6 +60,8 @@ tests:
postfach: "true"
benutzerRollen: "true"
organisationsEinheiten: "true"
organisationsEinheit:
zufiSearchUri: alfa/zufi/search/endpoint?searchBy={searchBy}
asserts:
- contains:
path: spec.template.spec.containers[0].env
......
#
# Copyright (C) 2024 Das Land Schleswig-Holstein vertreten durch den
# Ministerpräsidenten des Landes Schleswig-Holstein
# Staatskanzlei
# Abteilung Digitalisierung und zentrales IT-Management der Landesregierung
#
# Lizenziert unter der EUPL, Version 1.2 oder - sobald
# diese von der Europäischen Kommission genehmigt wurden -
# Folgeversionen der EUPL ("Lizenz");
# Sie dürfen dieses Werk ausschließlich gemäß
# dieser Lizenz nutzen.
# Eine Kopie der Lizenz finden Sie hier:
#
# https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
#
# Sofern nicht durch anwendbare Rechtsvorschriften
# gefordert oder in schriftlicher Form vereinbart, wird
# die unter der Lizenz verbreitete Software "so wie sie
# ist", OHNE JEGLICHE GEWÄHRLEISTUNG ODER BEDINGUNGEN -
# ausdrücklich oder stillschweigend - verbreitet.
# Die sprachspezifischen Genehmigungen und Beschränkungen
# unter der Lizenz sind dem Lizenztext zu entnehmen.
#
suite: test zufi search property
release:
name: administration
namespace: sh-helm-test
templates:
- templates/deployment.yaml
set:
ozgcloud:
bundesland: sh
bezeichner: helm
sso:
serverUrl: https://sso.company.local
imagePullSecret: image-pull-secret
tests:
- it: should not contain zufi search uri if organisationseinheit feature toggle not set
set:
ozgcloud:
feature:
organisationsEinheiten: "false"
organisationsEinheit:
zufiSearchUri: alfa/zufi/search/endpoint?searchBy={searchBy}
asserts:
- notContains:
path: spec.template.spec.containers[0].env
content:
name: ozgcloud_organisationseinheit_zufisucheuri
any: true
- it: should not contain zufi search uri if organisationseinheit feature toggle is disabled
set:
ozgcloud:
organisationsEinheit:
zufiSearchUri: alfa/zufi/search/endpoint?searchBy={searchBy}
asserts:
- notContains:
path: spec.template.spec.containers[0].env
content:
name: ozgcloud_organisationseinheit_zufisucheuri
any: true
- it: should set zufi search uri
set:
ozgcloud:
feature:
organisationsEinheiten: "true"
organisationsEinheit:
zufiSearchUri: alfa/zufi/search/endpoint?searchBy={searchBy}
asserts:
- contains:
path: spec.template.spec.containers[0].env
content:
name: ozgcloud_organisationseinheit_zufisucheuri
value: alfa/zufi/search/endpoint?searchBy={searchBy}
- it: should fail if zufi search uri is not set
set:
ozgcloud:
feature:
organisationsEinheiten: "true"
asserts:
- failedTemplate:
errorMessage: "ozgcloud.organisationsEinheit.zufiSearchUri must be set if feature organisationsEinheiten is activated"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment