Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
administration
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OZG-Cloud
app
administration
Commits
58ee6d9c
Commit
58ee6d9c
authored
10 months ago
by
OZGCloud
Browse files
Options
Downloads
Patches
Plain Diff
OZG-6105 add netpol required values unittests
parent
138ad9e5
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/test/helm/network_policy_test.yaml
+38
-4
38 additions, 4 deletions
src/test/helm/network_policy_test.yaml
with
38 additions
and
4 deletions
src/test/helm/network_policy_test.yaml
+
38
−
4
View file @
58ee6d9c
...
@@ -28,20 +28,29 @@ release:
...
@@ -28,20 +28,29 @@ release:
namespace
:
by-helm-test
namespace
:
by-helm-test
templates
:
templates
:
-
templates/network_policy.yaml
-
templates/network_policy.yaml
tests
:
-
it
:
should match apiVersion
set
:
set
:
networkPolicy
:
networkPolicy
:
dnsServerNamespace
:
kube-system
dnsServerNamespace
:
kube-system
ssoPublicIp
:
1.1.1.1/32
ssoPublicIp
:
1.1.1.1/32
tests
:
-
it
:
should match apiVersion
asserts
:
asserts
:
-
isAPIVersion
:
-
isAPIVersion
:
of
:
networking.k8s.io/v1
of
:
networking.k8s.io/v1
-
it
:
should match kind
-
it
:
should match kind
set
:
networkPolicy
:
dnsServerNamespace
:
kube-system
ssoPublicIp
:
1.1.1.1/32
asserts
:
asserts
:
-
isKind
:
-
isKind
:
of
:
NetworkPolicy
of
:
NetworkPolicy
-
it
:
validate metadata
-
it
:
validate metadata
set
:
networkPolicy
:
dnsServerNamespace
:
kube-system
ssoPublicIp
:
1.1.1.1/32
asserts
:
asserts
:
-
equal
:
-
equal
:
path
:
metadata
path
:
metadata
...
@@ -179,3 +188,28 @@ tests:
...
@@ -179,3 +188,28 @@ tests:
asserts
:
asserts
:
-
hasDocuments
:
-
hasDocuments
:
count
:
1
count
:
1
-
it
:
test network policy dnsServerNamespace must be set message
set
:
networkPolicy
:
disabled
:
false
ssoPublicIp
:
1.1.1.1
asserts
:
-
failedTemplate
:
errorMessage
:
networkPolicy.dnsServerNamespace must be set
-
it
:
test network policy ssoPublicIp must be set message
set
:
networkPolicy
:
disabled
:
false
dnsServerNamespace
:
test-dns-server-namespace
asserts
:
-
failedTemplate
:
errorMessage
:
networkPolicy.ssoPublicIp must be set
-
it
:
test network policy should be enabled by default
set
:
networkPolicy
:
dnsServerNamespace
:
test-dns-server-namespace
ssoPublicIp
:
1.1.1.1
asserts
:
-
hasDocuments
:
count
:
1
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment