diff --git a/src/test/helm/network_policy_test.yaml b/src/test/helm/network_policy_test.yaml index e741cf04b3641a3dc29e53804afb1150f9d04e64..87a413a71650374c6fb50334a34c0ae698a61e41 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: