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

OZG-3880 network policy dynamic dns server config

parent fbe3df84
No related branches found
No related tags found
No related merge requests found
......@@ -160,7 +160,7 @@ pipeline {
HELM_CHART_VERSION = generateHelmChartVersion()
dir('src/main/helm') {
sh "helm lint -f ../../test/unit-values.yaml"
sh "helm lint -f ../../test/linter-values.yaml"
sh "helm unittest --helm3 -f '../../test/helm/*.yaml' -v '../../test/unit-values.yaml' ."
......
......@@ -29,14 +29,23 @@ templates:
- templates/network_policy.yaml
tests:
- it: should match apiVersion
set:
networkPolicy:
dnsServerNamespace: test-namespace-dns
asserts:
- isAPIVersion:
of: networking.k8s.io/v1
- it: should match kind
set:
networkPolicy:
dnsServerNamespace: test-namespace-dns
asserts:
- isKind:
of: NetworkPolicy
- it: validate metadata
set:
networkPolicy:
dnsServerNamespace: test-namespace-dns
asserts:
- equal:
path: metadata
......@@ -44,6 +53,9 @@ tests:
name: network-policy-user-manager
namespace: by-helm-test
- it: validate spec
set:
networkPolicy:
dnsServerNamespace: test-namespace-dns
asserts:
- equal:
path: spec
......@@ -81,6 +93,7 @@ tests:
- it: add ingress rule by values
set:
networkPolicy:
dnsServerNamespace: test-namespace-dns
additionalIngressConfig:
- podSelector:
matchLabels:
......@@ -99,6 +112,7 @@ tests:
- it: test network policy disabled
set:
networkPolicy:
dnsServerNamespace: test-namespace-dns
disabled: true
asserts:
- hasDocuments:
......@@ -107,6 +121,7 @@ tests:
- it: test network policy unset should be disabled
set:
networkPolicy:
dnsServerNamespace: test-namespace-dns
disabled: false
asserts:
- hasDocuments:
......
......@@ -37,4 +37,3 @@ sso:
networkPolicy:
ssoPublicIp: 51.89.117.53/32
dnsServerNamespace: test-namespace-dns
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment