Skip to content
Snippets Groups Projects
Commit 96394f1b authored by OZGCloud's avatar OZGCloud
Browse files

OZG-5653 add unittests for netpol zufi rules

parent a0e35333
No related branches found
No related tags found
No related merge requests found
...@@ -262,6 +262,41 @@ tests: ...@@ -262,6 +262,41 @@ tests:
matchLabels: matchLabels:
component: info-manager component: info-manager
- it: should add egress rule to zufi server if zufi is enabled
set:
ozgcloud:
zufi:
enabled: true
namespace: zufi
asserts:
- contains:
path: spec.egress
content:
to:
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: zufi
podSelector:
matchLabels:
component: zufi-server
- it: should not add egress rule to zufi server if zufi is disabled
set:
ozgcloud:
zufi:
enabled: false
asserts:
- notContains:
path: spec.egress
content:
to:
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: zufi
podSelector:
matchLabels:
component: zufi-server
- it: should add egress rule to dns service - it: should add egress rule to dns service
asserts: asserts:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment