Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xta-adapter
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
eingang
xta-adapter
Commits
36e75f0d
Commit
36e75f0d
authored
9 months ago
by
OZG-Cloud Team
Browse files
Options
Downloads
Patches
Plain Diff
OZG-6105 add netpol required values unittests xta-adapter
parent
8f48d005
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
xta-adapter/src/test/helm/network_policy_test.yaml
+28
-3
28 additions, 3 deletions
xta-adapter/src/test/helm/network_policy_test.yaml
with
28 additions
and
3 deletions
xta-adapter/src/test/helm/network_policy_test.yaml
+
28
−
3
View file @
36e75f0d
...
@@ -27,19 +27,26 @@ release:
...
@@ -27,19 +27,26 @@ release:
namespace
:
by-helm-test
namespace
:
by-helm-test
templates
:
templates
:
-
templates/network_policy.yaml
-
templates/network_policy.yaml
set
:
networkPolicy
:
dnsServerNamespace
:
test-dns-namespace
tests
:
tests
:
-
it
:
should match apiVersion
-
it
:
should match apiVersion
set
:
networkPolicy
:
dnsServerNamespace
:
test-dns-namespace
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
:
test-dns-namespace
asserts
:
asserts
:
-
isKind
:
-
isKind
:
of
:
NetworkPolicy
of
:
NetworkPolicy
-
it
:
validate metadata
-
it
:
validate metadata
set
:
networkPolicy
:
dnsServerNamespace
:
test-dns-namespace
asserts
:
asserts
:
-
equal
:
-
equal
:
path
:
metadata
path
:
metadata
...
@@ -47,6 +54,9 @@ tests:
...
@@ -47,6 +54,9 @@ tests:
name
:
network-policy-xta-adapter
name
:
network-policy-xta-adapter
namespace
:
by-helm-test
namespace
:
by-helm-test
-
it
:
validate spec
-
it
:
validate spec
set
:
networkPolicy
:
dnsServerNamespace
:
test-dns-namespace
asserts
:
asserts
:
-
equal
:
-
equal
:
path
:
spec
path
:
spec
...
@@ -135,6 +145,21 @@ tests:
...
@@ -135,6 +145,21 @@ tests:
networkPolicy
:
networkPolicy
:
disabled
:
false
disabled
:
false
dnsServerNamespace
:
test-dns-namespace
dnsServerNamespace
:
test-dns-namespace
asserts
:
-
hasDocuments
:
count
:
1
-
it
:
test network policy 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
:
asserts
:
-
hasDocuments
:
-
hasDocuments
:
count
:
1
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