diff --git a/src/test/helm/network_policy_test.yaml b/src/test/helm/network_policy_test.yaml index 05270489f1006fd634f1dcaa106375c6c8f60fd1..e8adaa912e8ca2ca7a5f85c14a1cf04f15f00a88 100644 --- a/src/test/helm/network_policy_test.yaml +++ b/src/test/helm/network_policy_test.yaml @@ -172,6 +172,21 @@ tests: networkPolicy: disabled: false dnsServerNamespace: test-dns-namespace + asserts: + - hasDocuments: + count: 1 + - it: test network policy dnsServerNamespace must be set message + set: + networkPolicy: + disabled: false + asserts: + - failedTemplate: + errorMessage: networkPolicy.dnsServerNamespace must be set + + - it: test network policy should be enabled by default + set: + networkPolicy: + dnsServerNamespace: test-dns-server-namespace asserts: - hasDocuments: count: 1 \ No newline at end of file