Skip to content
Snippets Groups Projects
Commit 8b17e368 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-5100 cleanup tests

parent be38e361
No related branches found
No related tags found
No related merge requests found
......@@ -91,16 +91,15 @@ tests:
- port: 5353
protocol: TCP
- it: add ingress rule by values
- it: should add additionalIngressConfig
set:
networkPolicy:
ssoPublicIp: 51.89.117.53/32
dnsServerNamespace: test-namespace-dns
dnsServerNamespace: test-dns-namespace
additionalIngressConfig:
- from:
- podSelector:
matchLabels:
component: client2
additionalIngressConfig: yes
asserts:
- contains:
path: spec.ingress
......@@ -108,49 +107,31 @@ tests:
from:
- podSelector:
matchLabels:
component: client2
additionalIngressConfig: yes
- it: add egress rules by values
- it: should add additionalEgressConfig
set:
networkPolicy:
dnsServerNamespace: test-dns-namespace
additionalEgressConfig:
- to:
- ipBlock:
cidr: 1.2.3.4/32
- to:
- podSelector:
matchLabels:
component: ozg-testservice
ports:
- port: 12345
protocol: TCP
dnsServerNamespace: test-dns-namespace
additionalEgressConfig: yes
asserts:
- contains:
path: spec.egress
content:
to:
- ipBlock:
cidr: 1.2.3.4/32
- contains:
path: spec.egress
content:
to:
- podSelector:
matchLabels:
component: ozg-testservice
ports:
- port: 12345
protocol: TCP
additionalEgressConfig: yes
- it: should add additionalIngressConfigNamespace
set:
networkPolicy:
ssoPublicIp: 51.89.117.53/32
dnsServerNamespace: test-namespace-dns
dnsServerNamespace: test-dns-namespace
additionalIngressConfigNamespace:
- from:
- podSelector:
......
......@@ -253,45 +253,46 @@ tests:
matchLabels:
component: client2
- it: add egress rules by values
- it: should add additionalIngressConfig
set:
networkPolicy:
additionalEgressConfig:
- to:
- ipBlock:
cidr: 1.2.3.4/32
- to:
dnsServerNamespace: test-namespace-dns
additionalIngressConfig:
- from:
- podSelector:
matchLabels:
component: ozg-testservice
ports:
- port: 12345
protocol: TCP
dnsServerNamespace: test-dns-namespace
additionalIngressConfig: yes
asserts:
- contains:
path: spec.egress
path: spec.ingress
content:
to:
- ipBlock:
cidr: 1.2.3.4/32
from:
- podSelector:
matchLabels:
additionalIngressConfig: yes
- it: should add additionalEgressConfig
set:
networkPolicy:
dnsServerNamespace: test-namespace-dns
additionalEgressConfig:
- to:
- podSelector:
matchLabels:
additionalEgressConfig: yes
asserts:
- contains:
path: spec.egress
content:
to:
- podSelector:
matchLabels:
component: ozg-testservice
ports:
- port: 12345
protocol: TCP
additionalEgressConfig: yes
- it: should add additionalIngressConfigNamespace
set:
networkPolicy:
ssoPublicIp: 51.89.117.53/32
dnsServerNamespace: test-namespace-dns
additionalIngressConfigNamespace:
- from:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment