Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
eingang-manager
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
eingang-manager
Commits
d9d82eab
Commit
d9d82eab
authored
Nov 22, 2022
by
OZGCloud
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' into OZG-3140-jenkins-umzug
parents
a478b5a2
a8905420
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
23
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/test/helm/ingress-nginx-tests.yaml
+72
-0
72 additions, 0 deletions
src/test/helm/ingress-nginx-tests.yaml
src/test/helm/ingress_test.yaml
+7
-109
7 additions, 109 deletions
src/test/helm/ingress_test.yaml
src/test/unit-values.yaml
+19
-22
19 additions, 22 deletions
src/test/unit-values.yaml
with
98 additions
and
131 deletions
src/test/helm/ingress-nginx-tests.yaml
0 → 100644
+
72
−
0
View file @
d9d82eab
#
# Copyright (C) 2022 Das Land Schleswig-Holstein vertreten durch den
# Ministerpräsidenten des Landes Schleswig-Holstein
# Staatskanzlei
# Abteilung Digitalisierung und zentrales IT-Management der Landesregierung
#
# Lizenziert unter der EUPL, Version 1.2 oder - sobald
# diese von der Europäischen Kommission genehmigt wurden -
# Folgeversionen der EUPL ("Lizenz");
# Sie dürfen dieses Werk ausschließlich gemäß
# dieser Lizenz nutzen.
# Eine Kopie der Lizenz finden Sie hier:
#
# https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
#
# Sofern nicht durch anwendbare Rechtsvorschriften
# gefordert oder in schriftlicher Form vereinbart, wird
# die unter der Lizenz verbreitete Software "so wie sie
# ist", OHNE JEGLICHE GEWÄHRLEISTUNG ODER BEDINGUNGEN -
# ausdrücklich oder stillschweigend - verbreitet.
# Die sprachspezifischen Genehmigungen und Beschränkungen
# unter der Lizenz sind dem Lizenztext zu entnehmen.
#
suite
:
test ingress options
templates
:
-
templates/ingress.yaml
tests
:
-
it
:
should create afm ingress tls/ingressClass
release
:
name
:
afm-adapter
asserts
:
-
equal
:
path
:
spec.ingressClassName
value
:
nginx
-
equal
:
path
:
spec.tls[0].secretName
value
:
helm-afm-adapter-tls
-
it
:
should create afm ingress tls/ingressClass
release
:
name
:
fs-adapter
set
:
image.name
:
formsolutions-adapter
asserts
:
-
equal
:
path
:
spec.ingressClassName
value
:
nginx
-
equal
:
path
:
spec.tls[0].secretName
value
:
helm-fs-adapter-tls
-
it
:
should not create afm ingress tls/ingressClass
release
:
name
:
afm-adapter
set
:
cluster_env
:
dataport
asserts
:
-
isNull
:
path
:
spec.ingressClassName
-
isNull
:
path
:
spec.tls[0].secretName
-
it
:
should not create afm ingress tls/ingressClass
release
:
name
:
fs-adapter
set
:
image.name
:
formsolutions-adapter
cluster_env
:
dataport
asserts
:
-
isNull
:
path
:
spec.ingressClassName
-
isNull
:
path
:
spec.tls[0].secretName
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/test/helm/ingress_test.yaml
+
7
−
109
View file @
d9d82eab
...
...
@@ -30,9 +30,6 @@ templates:
-
templates/ingress.yaml
tests
:
-
it
:
should match basic data
set
:
kop.environment
:
dev
kop.bezeichner
:
unit
asserts
:
-
containsDocument
:
kind
:
Ingress
...
...
@@ -44,140 +41,41 @@ tests:
path
:
metadata.namespace
value
:
sh-helm-test
-
it
:
should match service port number
set
:
kop.environment
:
dev
kop.bezeichner
:
unit
asserts
:
-
equal
:
path
:
spec.rules[0].http.paths[0].backend.service.port.number
value
:
8080
-
it
:
should match service name
set
:
kop.environment
:
dev
kop.bezeichner
:
unit
asserts
:
-
equal
:
path
:
spec.rules[0].http.paths[0].backend.service.name
value
:
intelliform-adapter
-
it
:
should match service path
set
:
kop.environment
:
dev
kop.bezeichner
:
unit
asserts
:
-
isEmpty
:
path
:
spec.rules[0].http.paths[0].path
-
it
:
should match service pathType
set
:
kop.environment
:
dev
kop.bezeichner
:
unit
asserts
:
-
equal
:
path
:
spec.rules[0].http.paths[0].pathType
value
:
ImplementationSpecific
-
it
:
should create afm dev host
set
:
kop.environment
:
dev
kop.bezeichner
:
unit
asserts
:
-
equal
:
path
:
spec.rules[0].host
value
:
unit-afm.dev.ozg-sh.de
-
equal
:
path
:
spec.tls[0].hosts[0]
value
:
unit-afm.dev.ozg-sh.de
-
it
:
should create afm test host
set
:
kop.environment
:
test
kop.bezeichner
:
unit
-
it
:
should create afm host
asserts
:
-
equal
:
path
:
spec.rules[0].host
value
:
unit
-afm.test.ozg-
sh
.de
value
:
helm
-afm.test.
sh.
ozg-
cloud
.de
-
equal
:
path
:
spec.tls[0].hosts[0]
value
:
unit-afm.test.ozg-sh.de
-
it
:
should create afm prod host
set
:
kop.environment
:
prod
kop.bezeichner
:
unit
asserts
:
-
equal
:
path
:
spec.rules[0].host
value
:
unit.afm.ozg-sh.de
-
equal
:
path
:
spec.tls[0].hosts[0]
value
:
unit.afm.ozg-sh.de
-
it
:
should create afm stage host
set
:
kop.environment
:
stage
kop.bezeichner
:
unit
asserts
:
-
equal
:
path
:
spec.rules[0].host
value
:
unit.stage.afm.ozg-sh.de
-
equal
:
path
:
spec.tls[0].hosts[0]
value
:
unit.stage.afm.ozg-sh.de
-
it
:
should set host
release
:
namespace
:
sh-unit-stage
set
:
ingress.overrideHost
:
https://host.dev.ozg-sh.de
kop.environment
:
dev
kop.bezeichner
:
unit
asserts
:
-
equal
:
path
:
spec.rules[0].host
value
:
host.dev.ozg-sh.de
-
equal
:
path
:
spec.tls[0].hosts[0]
value
:
host.dev.ozg-sh.de
value
:
helm-afm.test.sh.ozg-cloud.de
-
it
:
should create fs dev host
set
:
image.name
:
formsolutions-adapter
kop.environment
:
dev
kop.bezeichner
:
unit
asserts
:
-
equal
:
path
:
spec.rules[0].host
value
:
unit-fs.dev.ozg-sh.de
-
equal
:
path
:
spec.tls[0].hosts[0]
value
:
unit-fs.dev.ozg-sh.de
-
it
:
should create fs test host
set
:
image.name
:
formsolutions-adapter
kop.environment
:
test
kop.bezeichner
:
unit
asserts
:
-
equal
:
path
:
spec.rules[0].host
value
:
unit-fs.test.ozg-sh.de
-
equal
:
path
:
spec.tls[0].hosts[0]
value
:
unit-fs.test.ozg-sh.de
-
it
:
should create fs prod host
set
:
image.name
:
formsolutions-adapter
kop.environment
:
prod
kop.bezeichner
:
unit
asserts
:
-
equal
:
path
:
spec.rules[0].host
value
:
unit.fs.ozg-sh.de
-
equal
:
path
:
spec.tls[0].hosts[0]
value
:
unit.fs.ozg-sh.de
-
it
:
should create fs stage host
-
it
:
should create fs host
set
:
image.name
:
formsolutions-adapter
kop.environment
:
stage
kop.bezeichner
:
unit
asserts
:
-
equal
:
path
:
spec.rules[0].host
value
:
unit.stage.fs.ozg-sh
.de
value
:
helm-fs.test.sh.ozg-cloud
.de
-
equal
:
path
:
spec.tls[0].hosts[0]
value
:
unit.stage.fs.ozg-sh.de
\ No newline at end of file
value
:
helm-fs.test.sh.ozg-cloud.de
This diff is collapsed.
Click to expand it.
src/test/
helm/deployment_defaults_annotaion_t
es
t
.yaml
→
src/test/
unit-valu
es.yaml
+
19
−
22
View file @
d9d82eab
...
...
@@ -22,26 +22,23 @@
# unter der Lizenz sind dem Lizenztext zu entnehmen.
#
suite
:
test deployment
release
:
baseUrl
:
test.sh.ozg-cloud.de
kop
:
bundesland
:
sh
environment
:
test
bezeichner
:
helm
routing
:
targetPlutoName
:
pluto
image
:
repo
:
docker.ozg-sh.de
name
:
intelliform-adapter
namespace
:
sh-helm-test
templates
:
-
templates/ingress.yaml
tests
:
-
it
:
check ingress annotaions if traefik v2
set
:
kop.environment
:
dev
kop.bezeichner
:
helm
asserts
:
-
isKind
:
of
:
Ingress
-
equal
:
path
:
metadata.annotations.[kubernetes.io/ingress.class]
value
:
traefik
-
equal
:
path
:
metadata.annotations.[traefik.ingress.kubernetes.io/router.entrypoints]
value
:
websecure
-
equal
:
path
:
metadata.annotations.[traefik.ingress.kubernetes.io/router.tls]
value
:
"
true"
tag
:
latest
imageCredentials
:
registry
:
docker.ozg-sh.de
username
:
kop
password
:
email
:
webmaster@ozg-sh.de
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Prev
1
2
Next
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