From f2d86441d731f490372455850f50e82221c33d2d Mon Sep 17 00:00:00 2001
From: OZGCloud <ozgcloud@mgm-tp.com>
Date: Thu, 4 Jul 2024 10:44:21 +0200
Subject: [PATCH] OZG-5653 update netpol helm unittests

---
 src/test/helm/network_policy_test.yaml | 17 +++--------------
 1 file changed, 3 insertions(+), 14 deletions(-)

diff --git a/src/test/helm/network_policy_test.yaml b/src/test/helm/network_policy_test.yaml
index 5394332e6..d0717ce46 100644
--- a/src/test/helm/network_policy_test.yaml
+++ b/src/test/helm/network_policy_test.yaml
@@ -295,17 +295,12 @@ tests:
             - namespaceSelector:
                 matchLabels:
                   kubernetes.io/metadata.name: zufi
-              podSelector: 
-                matchLabels:
-                  component: zufi-server
-            ports:
-            - port: 9190
-              protocol: TCP 
+          any: true
+  
   - it: should throw error if zufi is enabled but zufi namespace is not set
     set:
       zufiManager:
         enabled: true
-        namespace: 
     asserts:
       - failedTemplate:
           errorMessage: zufiManager.namespace must be set if zufiManager server is enabled
@@ -319,13 +314,7 @@ tests:
             - namespaceSelector:
                 matchLabels:
                   kubernetes.io/metadata.name: zufi
-              podSelector: 
-                matchLabels:
-                  component: zufi-server
-            ports:
-            - port: 9190
-              protocol: TCP 
-
+          any: true
 
 
   - it: should add egress rule to dns service
-- 
GitLab