From b56d25c932b016e8726374dac1115a88e406a9d8 Mon Sep 17 00:00:00 2001 From: OZGCloud <ozgcloud@mgm-tp.com> Date: Tue, 16 Jul 2024 13:35:14 +0200 Subject: [PATCH] OZG-6105 add and update helm unittest for netpol --- .../unit-tests/network_policy_test.yaml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/elster-transfer/unit-tests/network_policy_test.yaml b/elster-transfer/unit-tests/network_policy_test.yaml index c894864..9169066 100644 --- a/elster-transfer/unit-tests/network_policy_test.yaml +++ b/elster-transfer/unit-tests/network_policy_test.yaml @@ -191,4 +191,19 @@ tests: to: - podSelector: matchLabels: - additionalEgressConfigLocal: yes \ No newline at end of file + additionalEgressConfigLocal: yes + - it: test 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 -- GitLab