From d674d832bb25e6b9b9b8d9b263f5c1d0debf4f39 Mon Sep 17 00:00:00 2001
From: OZGCloud <ozgcloud@mgm-tp.com>
Date: Mon, 7 Oct 2024 10:36:02 +0200
Subject: [PATCH] OZG-6716 add helm test for monitoring rule

---
 src/test/helm/network_policy_test.yaml | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/src/test/helm/network_policy_test.yaml b/src/test/helm/network_policy_test.yaml
index e741cf0..87a413a 100644
--- a/src/test/helm/network_policy_test.yaml
+++ b/src/test/helm/network_policy_test.yaml
@@ -100,6 +100,22 @@ tests:
                   protocol: UDP
                 - port: 5353
                   protocol: TCP
+  - it: should set rule for monitoring
+    set:
+      networkPolicy:
+        dnsServerNamespace: test-dns-namespace
+        monitoringNamespace: test-monitoring
+    asserts:
+      - contains:
+          path: spec.ingress
+          content:
+            from:
+            - namespaceSelector:
+                matchLabels:
+                  name: test-monitoring
+            ports:
+              - port: 8081
+                protocol: TCP
 
   - it: add ingress rule by values local
     set:
-- 
GitLab