From 7b8d3d60644d06b8d870a7f89b64529967c21033 Mon Sep 17 00:00:00 2001
From: Stefan Hauffe <stefan.hauffe@mgm-tp.com>
Date: Thu, 19 Dec 2024 13:52:32 +0100
Subject: [PATCH] OZG-7324: Add unit test for ingress

---
 src/test/helm/ingress_nginx_test.yaml | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/src/test/helm/ingress_nginx_test.yaml b/src/test/helm/ingress_nginx_test.yaml
index 815ca9460e..7e9fb9941c 100644
--- a/src/test/helm/ingress_nginx_test.yaml
+++ b/src/test/helm/ingress_nginx_test.yaml
@@ -117,4 +117,16 @@ tests:
     asserts:
       - equal:
           path: spec.tls[0].hosts[0]
-          value: helm.test.by.ozg-cloud.de
\ No newline at end of file
+          value: helm.test.by.ozg-cloud.de
+  - it: should create rules correctly
+    asserts:
+      - equal:
+          path: spec.rules[0].http.paths[0]
+          value:
+            path: /api
+            pathType: ImplementationSpecific
+            backend:
+              service:
+                name: alfa
+                port:
+                  number: 8080
\ No newline at end of file
-- 
GitLab