From 5df71b0bd1a076ce53c30645001ca8a1544dc39c Mon Sep 17 00:00:00 2001
From: OZGCloud <ozgcloud@mgm-tp.com>
Date: Tue, 19 Mar 2024 17:13:15 +0100
Subject: [PATCH] OZG-5238 Set serverurl in helm tests

---
 src/test/helm/deployment_database_test.yaml          | 8 ++++++++
 src/test/helm/deployment_defaults_sso_test.yaml      | 2 ++
 src/test/helm/deployment_image_pull_secret_test.yaml | 4 ++++
 src/test/helm/deployment_resources_test.yaml         | 2 ++
 src/test/helm/deployment_spring_profile_test.yaml    | 4 ++++
 src/test/helm/deployment_test.yaml                   | 8 ++++++++
 6 files changed, 28 insertions(+)

diff --git a/src/test/helm/deployment_database_test.yaml b/src/test/helm/deployment_database_test.yaml
index cacdf790..a6a35d7a 100644
--- a/src/test/helm/deployment_database_test.yaml
+++ b/src/test/helm/deployment_database_test.yaml
@@ -35,6 +35,8 @@ tests:
         environment: test
         bundesland: sh
         bezeichner: helm
+    sso:
+      serverUrl: https://sso.company.local
     asserts:
       - contains:
           path: spec.template.spec.volumes
@@ -49,6 +51,8 @@ tests:
         environment: test
         bundesland: sh
         bezeichner: helm
+    sso:
+      serverUrl: https://sso.company.local
     asserts:
       - contains:
           path: spec.template.spec.containers[0].volumeMounts
@@ -63,6 +67,8 @@ tests:
         environment: test
         bundesland: sh
         bezeichner: helm
+    sso:
+      serverUrl: https://sso.company.local
       database.useExternal: false
     asserts:
       - contains:
@@ -85,6 +91,8 @@ tests:
         environment: test
         bundesland: sh
         bezeichner: helm
+    sso:
+      serverUrl: https://sso.company.local
       database.useExternal: true
     asserts:
       - contains:
diff --git a/src/test/helm/deployment_defaults_sso_test.yaml b/src/test/helm/deployment_defaults_sso_test.yaml
index ef6cfdcd..a5122dba 100644
--- a/src/test/helm/deployment_defaults_sso_test.yaml
+++ b/src/test/helm/deployment_defaults_sso_test.yaml
@@ -63,6 +63,8 @@ tests:
         bezeichner: eins-zwei-drei
         environment: dev
         bundesland: sh
+      sso:
+        serverUrl: https://sso.company.local
     asserts:
       - isKind:
           of: Deployment
diff --git a/src/test/helm/deployment_image_pull_secret_test.yaml b/src/test/helm/deployment_image_pull_secret_test.yaml
index 5d64a85c..d1df4f75 100644
--- a/src/test/helm/deployment_image_pull_secret_test.yaml
+++ b/src/test/helm/deployment_image_pull_secret_test.yaml
@@ -34,6 +34,8 @@ tests:
         environment: test
         bundesland: sh
         bezeichner: helm
+    sso:
+      serverUrl: https://sso.company.local
     asserts:
       - contains:
           path: spec.template.spec.imagePullSecrets
@@ -45,6 +47,8 @@ tests:
         environment: test
         bundesland: sh
         bezeichner: helm
+    sso:
+      serverUrl: https://sso.company.local
       imagePullSecret: custom-image-pull-secret
     asserts:
       - contains:
diff --git a/src/test/helm/deployment_resources_test.yaml b/src/test/helm/deployment_resources_test.yaml
index 51763348..9514097a 100644
--- a/src/test/helm/deployment_resources_test.yaml
+++ b/src/test/helm/deployment_resources_test.yaml
@@ -34,6 +34,8 @@ tests:
         environment: test
         bundesland: sh
         bezeichner: helm
+    sso:
+      serverUrl: https://sso.company.local
       resources: { "test": 1 }
     asserts:
       - equal:
diff --git a/src/test/helm/deployment_spring_profile_test.yaml b/src/test/helm/deployment_spring_profile_test.yaml
index 74f1fe37..54553008 100644
--- a/src/test/helm/deployment_spring_profile_test.yaml
+++ b/src/test/helm/deployment_spring_profile_test.yaml
@@ -35,6 +35,8 @@ tests:
         environment: test
         bundesland: sh
         bezeichner: helm
+    sso:
+      serverUrl: https://sso.company.local
       env.overrideSpringProfiles: oc,dev,ea
     asserts:
       - isKind:
@@ -50,6 +52,8 @@ tests:
         environment: test
         bundesland: sh
         bezeichner: helm
+    sso:
+      serverUrl: https://sso.company.local
     asserts:
       - isKind:
           of: Deployment
diff --git a/src/test/helm/deployment_test.yaml b/src/test/helm/deployment_test.yaml
index d61ea652..fda48156 100644
--- a/src/test/helm/deployment_test.yaml
+++ b/src/test/helm/deployment_test.yaml
@@ -36,6 +36,8 @@ tests:
         environment: test
         bundesland: sh
         bezeichner: helm
+    sso:
+      serverUrl: https://sso.company.local
     asserts:
       - isKind:
           of: Deployment
@@ -53,6 +55,8 @@ tests:
         environment: test
         bundesland: sh
         bezeichner: helm
+    sso:
+      serverUrl: https://sso.company.local
     asserts:
       - equal:
           path: spec.progressDeadlineSeconds
@@ -86,6 +90,8 @@ tests:
         environment: test
         bundesland: sh
         bezeichner: helm
+    sso:
+      serverUrl: https://sso.company.local
     asserts:
       - equal:
           path: spec.template.metadata.labels["app.kubernetes.io/instance"]
@@ -130,6 +136,8 @@ tests:
         environment: test
         bundesland: sh
         bezeichner: helm
+    sso:
+      serverUrl: https://sso.company.local
     asserts:
       - equal:
           path: spec.template.spec.containers[0].name
-- 
GitLab