Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
alfa
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OZG-Cloud
app
alfa
Commits
fb1c6fc6
Commit
fb1c6fc6
authored
8 months ago
by
OZGCloud
Browse files
Options
Downloads
Patches
Plain Diff
OZG-6513 resolve comments
parent
4e66c9e9
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
alfa-client/src/test/helm/ingress_tests.yaml
+59
-6
59 additions, 6 deletions
alfa-client/src/test/helm/ingress_tests.yaml
with
59 additions
and
6 deletions
alfa-client/src/test/helm/ingress_tests.yaml
+
59
−
6
View file @
fb1c6fc6
...
...
@@ -28,17 +28,21 @@ release:
namespace
:
sh-helm-test
templates
:
-
templates/ingress.yaml
tests
:
-
it
:
check ingress kind
set
:
ozgcloud
:
bezeichner
:
helm
baseUrl
:
test.by.ozg-cloud.de
tests
:
-
it
:
check ingress kind
asserts
:
-
isKind
:
of
:
Ingress
-
it
:
should create default ingress tls
set
:
ozgcloud
:
bezeichner
:
helm
baseUrl
:
test.by.ozg-cloud.de
asserts
:
-
equal
:
path
:
spec.tls[0].secretName
...
...
@@ -47,12 +51,19 @@ tests:
set
:
ingress
:
tlsSecretName
:
client-tls
ozgcloud
:
bezeichner
:
helm
baseUrl
:
test.by.ozg-cloud.de
asserts
:
-
equal
:
path
:
spec.tls[0].secretName
value
:
client-tls
-
it
:
should not create ingress tls/ingressClass by default
set
:
ozgcloud
:
bezeichner
:
helm
baseUrl
:
test.by.ozg-cloud.de
asserts
:
-
isNull
:
path
:
spec.ingressClassName
...
...
@@ -60,6 +71,9 @@ tests:
set
:
ingress
:
className
:
ingress
ozgcloud
:
bezeichner
:
helm
baseUrl
:
test.by.ozg-cloud.de
asserts
:
-
equal
:
path
:
spec.ingressClassName
...
...
@@ -67,6 +81,10 @@ tests:
-
it
:
should use default letsencrypt-prod cluster-issuer
set
:
ozgcloud
:
bezeichner
:
helm
baseUrl
:
test.by.ozg-cloud.de
asserts
:
-
equal
:
path
:
metadata.annotations["cert-manager.io/cluster-issuer"]
...
...
@@ -75,6 +93,9 @@ tests:
-
it
:
should use letsencrypt-staging cluster-issuer
set
:
ingress.use_staging_cert
:
true
ozgcloud
:
bezeichner
:
helm
baseUrl
:
test.by.ozg-cloud.de
asserts
:
-
equal
:
path
:
metadata.annotations["cert-manager.io/cluster-issuer"]
...
...
@@ -83,18 +104,29 @@ tests:
-
it
:
should use letsencrypt-prod cluster-issuer
set
:
ingress.use_staging_cert
:
false
ozgcloud
:
bezeichner
:
helm
baseUrl
:
test.by.ozg-cloud.de
asserts
:
-
equal
:
path
:
metadata.annotations["cert-manager.io/cluster-issuer"]
value
:
letsencrypt-prod
-
it
:
should create tls hosts name correctly
set
:
ozgcloud
:
bezeichner
:
helm
baseUrl
:
test.by.ozg-cloud.de
asserts
:
-
equal
:
path
:
spec.tls[0].hosts[0]
value
:
helm.test.by.ozg-cloud.de
-
it
:
should create rules correctly
set
:
ozgcloud
:
bezeichner
:
helm
baseUrl
:
test.by.ozg-cloud.de
asserts
:
-
equal
:
path
:
spec.rules[0].http.paths[0]
...
...
@@ -109,7 +141,28 @@ tests:
-
it
:
should set hostname
set
:
ozgcloud
:
bezeichner
:
helm
baseUrl
:
test.by.ozg-cloud.de
asserts
:
-
equal
:
path
:
spec.rules[0].host
value
:
helm.test.by.ozg-cloud.de
-
it
:
should fail template when baseUrl not set
set
:
ozgcloud
:
bezeichner
:
helm
asserts
:
-
failedTemplate
:
errormessage
:
baseUrl muss angegeben sein
-
it
:
should fail template when bezeichner not set
set
:
ozgcloud
:
baseUrl
:
test.by.ozg-cloud.de
asserts
:
-
failedTemplate
:
errormessage
:
ozgcloud.bezeichner muss angegeben sein
\ 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