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
b475a2cf
Commit
b475a2cf
authored
1 year ago
by
OZGCloud
Browse files
Options
Downloads
Patches
Plain Diff
OZG-5238 Deployment test indentation
parent
c8cb0659
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/test/helm/deployment_test.yaml
+201
-205
201 additions, 205 deletions
src/test/helm/deployment_test.yaml
with
201 additions
and
205 deletions
src/test/helm/deployment_test.yaml
+
201
−
205
View file @
b475a2cf
...
...
@@ -24,211 +24,207 @@
suite
:
deployment
release
:
name
:
administration
name
:
administration
templates
:
-
templates/deployment.yaml
-
templates/deployment.yaml
set
:
ozgcloud.environment
:
"
default"
ozgcloud.environment
:
"
default"
tests
:
-
it
:
should have metadata values
set
:
ozgcloud
:
environment
:
test
bundesland
:
sh
bezeichner
:
helm
sso
:
serverUrl
:
https://sso.company.local
asserts
:
-
isKind
:
of
:
Deployment
-
equal
:
path
:
metadata.name
value
:
"
administration"
-
equal
:
path
:
metadata.namespace
value
:
"
NAMESPACE"
-
exists
:
path
:
metadata.labels
-
it
:
should have correct general settings
set
:
ozgcloud
:
environment
:
test
bundesland
:
sh
bezeichner
:
helm
sso
:
serverUrl
:
https://sso.company.local
asserts
:
-
equal
:
path
:
spec.progressDeadlineSeconds
value
:
600
-
equal
:
path
:
spec.replicas
value
:
1
-
equal
:
path
:
spec.revisionHistoryLimit
value
:
10
-
exists
:
path
:
spec.selector
-
equal
:
path
:
spec.selector.matchLabels["app.kubernetes.io/name"]
value
:
"
administration"
-
equal
:
path
:
spec.selector.matchLabels["app.kubernetes.io/namespace"]
value
:
"
NAMESPACE"
-
equal
:
path
:
spec.strategy.rollingUpdate.maxSurge
value
:
1
-
equal
:
path
:
spec.strategy.rollingUpdate.maxUnavailable
value
:
0
-
equal
:
path
:
spec.strategy.type
value
:
"
RollingUpdate"
-
it
:
should have correct template configuration
set
:
ozgcloud
:
environment
:
test
bundesland
:
sh
bezeichner
:
helm
sso
:
serverUrl
:
https://sso.company.local
asserts
:
-
equal
:
path
:
spec.template.metadata.labels["app.kubernetes.io/instance"]
value
:
"
administration"
-
equal
:
path
:
spec.template.metadata.labels.component
value
:
"
administration"
-
equal
:
path
:
spec.template.spec.topologySpreadConstraints[0].maxSkew
value
:
1
-
equal
:
path
:
spec.template.spec.topologySpreadConstraints[0].topologyKey
value
:
"
kubernetes.io/hostname"
-
equal
:
path
:
spec.template.spec.topologySpreadConstraints[0].whenUnsatisfiable
value
:
"
ScheduleAnyway"
-
equal
:
path
:
spec.template.spec.topologySpreadConstraints[0].labelSelector.matchLabels["app.kubernetes.io/name"]
value
:
"
administration"
-
isEmpty
:
path
:
spec.template.spec.dnsConfig
-
equal
:
path
:
spec.template.spec.dnsPolicy
value
:
"
ClusterFirst"
-
equal
:
path
:
spec.template.spec.imagePullSecrets[0].name
value
:
"
administration-image-pull-secret"
-
equal
:
path
:
spec.template.spec.restartPolicy
value
:
"
Always"
-
equal
:
path
:
spec.template.spec.schedulerName
value
:
"
default-scheduler"
-
isEmpty
:
path
:
spec.template.spec.securityContext
-
equal
:
path
:
spec.template.spec.terminationGracePeriodSeconds
value
:
300000000
-
it
:
should have correct container configuration
set
:
ozgcloud
:
environment
:
test
bundesland
:
sh
bezeichner
:
helm
sso
:
serverUrl
:
https://sso.company.local
asserts
:
-
equal
:
path
:
spec.template.spec.containers[0].name
value
:
"
administration"
-
equal
:
path
:
spec.template.spec.containers[0].image
value
:
"
docker.ozg-sh.de/administration:latest"
-
equal
:
path
:
spec.template.spec.containers[0].imagePullPolicy
value
:
"
Always"
-
equal
:
path
:
spec.template.spec.containers[0].ports[0].containerPort
value
:
8080
-
equal
:
path
:
spec.template.spec.containers[0].ports[0].name
value
:
"
8080tcp1"
-
equal
:
path
:
spec.template.spec.containers[0].ports[0].protocol
value
:
"
TCP"
-
equal
:
path
:
spec.template.spec.containers[0].ports[1].containerPort
value
:
8081
-
equal
:
path
:
spec.template.spec.containers[0].ports[1].name
value
:
"
metrics"
-
equal
:
path
:
spec.template.spec.containers[0].ports[1].protocol
value
:
"
TCP"
-
equal
:
path
:
spec.template.spec.containers[0].readinessProbe.failureThreshold
value
:
3
-
equal
:
path
:
spec.template.spec.containers[0].readinessProbe.httpGet.path
value
:
"
/actuator/health/readiness"
-
equal
:
path
:
spec.template.spec.containers[0].readinessProbe.httpGet.port
value
:
8081
-
equal
:
path
:
spec.template.spec.containers[0].readinessProbe.httpGet.scheme
value
:
"
HTTP"
-
equal
:
path
:
spec.template.spec.containers[0].readinessProbe.periodSeconds
value
:
10
-
equal
:
path
:
spec.template.spec.containers[0].readinessProbe.successThreshold
value
:
1
-
equal
:
path
:
spec.template.spec.containers[0].readinessProbe.timeoutSeconds
value
:
3
-
equal
:
path
:
spec.template.spec.containers[0].startupProbe.httpGet.path
value
:
"
/actuator/health/readiness"
-
equal
:
path
:
spec.template.spec.containers[0].startupProbe.httpGet.port
value
:
8081
-
equal
:
path
:
spec.template.spec.containers[0].startupProbe.failureThreshold
value
:
10
-
equal
:
path
:
spec.template.spec.containers[0].startupProbe.initialDelaySeconds
value
:
30
-
equal
:
path
:
spec.template.spec.containers[0].startupProbe.periodSeconds
value
:
10
-
equal
:
path
:
spec.template.spec.containers[0].startupProbe.successThreshold
value
:
1
-
equal
:
path
:
spec.template.spec.containers[0].startupProbe.timeoutSeconds
value
:
5
-
equal
:
path
:
spec.template.spec.containers[0].securityContext.allowPrivilegeEscalation
value
:
false
-
equal
:
path
:
spec.template.spec.containers[0].securityContext.privileged
value
:
false
-
equal
:
path
:
spec.template.spec.containers[0].securityContext.readOnlyRootFilesystem
value
:
false
-
equal
:
path
:
spec.template.spec.containers[0].securityContext.runAsNonRoot
value
:
true
-
equal
:
path
:
spec.template.spec.containers[0].stdin
value
:
true
-
equal
:
path
:
spec.template.spec.containers[0].terminationMessagePath
value
:
"
/dev/termination-log"
-
equal
:
path
:
spec.template.spec.containers[0].terminationMessagePolicy
value
:
"
File"
-
equal
:
path
:
spec.template.spec.containers[0].tty
value
:
true
-
it
:
should have metadata values
set
:
ozgcloud
:
bundesland
:
sh
bezeichner
:
helm
sso
:
serverUrl
:
https://sso.company.local
asserts
:
-
isKind
:
of
:
Deployment
-
equal
:
path
:
metadata.name
value
:
"
administration"
-
equal
:
path
:
metadata.namespace
value
:
"
NAMESPACE"
-
exists
:
path
:
metadata.labels
-
it
:
should have correct general settings
set
:
ozgcloud
:
bundesland
:
sh
bezeichner
:
helm
sso
:
serverUrl
:
https://sso.company.local
asserts
:
-
equal
:
path
:
spec.progressDeadlineSeconds
value
:
600
-
equal
:
path
:
spec.replicas
value
:
1
-
equal
:
path
:
spec.revisionHistoryLimit
value
:
10
-
exists
:
path
:
spec.selector
-
equal
:
path
:
spec.selector.matchLabels["app.kubernetes.io/name"]
value
:
"
administration"
-
equal
:
path
:
spec.selector.matchLabels["app.kubernetes.io/namespace"]
value
:
"
NAMESPACE"
-
equal
:
path
:
spec.strategy.rollingUpdate.maxSurge
value
:
1
-
equal
:
path
:
spec.strategy.rollingUpdate.maxUnavailable
value
:
0
-
equal
:
path
:
spec.strategy.type
value
:
"
RollingUpdate"
-
it
:
should have correct template configuration
set
:
ozgcloud
:
bundesland
:
sh
bezeichner
:
helm
sso
:
serverUrl
:
https://sso.company.local
asserts
:
-
equal
:
path
:
spec.template.metadata.labels["app.kubernetes.io/instance"]
value
:
"
administration"
-
equal
:
path
:
spec.template.metadata.labels.component
value
:
"
administration"
-
equal
:
path
:
spec.template.spec.topologySpreadConstraints[0].maxSkew
value
:
1
-
equal
:
path
:
spec.template.spec.topologySpreadConstraints[0].topologyKey
value
:
"
kubernetes.io/hostname"
-
equal
:
path
:
spec.template.spec.topologySpreadConstraints[0].whenUnsatisfiable
value
:
"
ScheduleAnyway"
-
equal
:
path
:
spec.template.spec.topologySpreadConstraints[0].labelSelector.matchLabels["app.kubernetes.io/name"]
value
:
"
administration"
-
isEmpty
:
path
:
spec.template.spec.dnsConfig
-
equal
:
path
:
spec.template.spec.dnsPolicy
value
:
"
ClusterFirst"
-
equal
:
path
:
spec.template.spec.imagePullSecrets[0].name
value
:
"
administration-image-pull-secret"
-
equal
:
path
:
spec.template.spec.restartPolicy
value
:
"
Always"
-
equal
:
path
:
spec.template.spec.schedulerName
value
:
"
default-scheduler"
-
isEmpty
:
path
:
spec.template.spec.securityContext
-
equal
:
path
:
spec.template.spec.terminationGracePeriodSeconds
value
:
300000000
-
it
:
should have correct container configuration
set
:
ozgcloud
:
bundesland
:
sh
bezeichner
:
helm
sso
:
serverUrl
:
https://sso.company.local
asserts
:
-
equal
:
path
:
spec.template.spec.containers[0].name
value
:
"
administration"
-
equal
:
path
:
spec.template.spec.containers[0].image
value
:
"
docker.ozg-sh.de/administration:latest"
-
equal
:
path
:
spec.template.spec.containers[0].imagePullPolicy
value
:
"
Always"
-
equal
:
path
:
spec.template.spec.containers[0].ports[0].containerPort
value
:
8080
-
equal
:
path
:
spec.template.spec.containers[0].ports[0].name
value
:
"
8080tcp1"
-
equal
:
path
:
spec.template.spec.containers[0].ports[0].protocol
value
:
"
TCP"
-
equal
:
path
:
spec.template.spec.containers[0].ports[1].containerPort
value
:
8081
-
equal
:
path
:
spec.template.spec.containers[0].ports[1].name
value
:
"
metrics"
-
equal
:
path
:
spec.template.spec.containers[0].ports[1].protocol
value
:
"
TCP"
-
equal
:
path
:
spec.template.spec.containers[0].readinessProbe.failureThreshold
value
:
3
-
equal
:
path
:
spec.template.spec.containers[0].readinessProbe.httpGet.path
value
:
"
/actuator/health/readiness"
-
equal
:
path
:
spec.template.spec.containers[0].readinessProbe.httpGet.port
value
:
8081
-
equal
:
path
:
spec.template.spec.containers[0].readinessProbe.httpGet.scheme
value
:
"
HTTP"
-
equal
:
path
:
spec.template.spec.containers[0].readinessProbe.periodSeconds
value
:
10
-
equal
:
path
:
spec.template.spec.containers[0].readinessProbe.successThreshold
value
:
1
-
equal
:
path
:
spec.template.spec.containers[0].readinessProbe.timeoutSeconds
value
:
3
-
equal
:
path
:
spec.template.spec.containers[0].startupProbe.httpGet.path
value
:
"
/actuator/health/readiness"
-
equal
:
path
:
spec.template.spec.containers[0].startupProbe.httpGet.port
value
:
8081
-
equal
:
path
:
spec.template.spec.containers[0].startupProbe.failureThreshold
value
:
10
-
equal
:
path
:
spec.template.spec.containers[0].startupProbe.initialDelaySeconds
value
:
30
-
equal
:
path
:
spec.template.spec.containers[0].startupProbe.periodSeconds
value
:
10
-
equal
:
path
:
spec.template.spec.containers[0].startupProbe.successThreshold
value
:
1
-
equal
:
path
:
spec.template.spec.containers[0].startupProbe.timeoutSeconds
value
:
5
-
equal
:
path
:
spec.template.spec.containers[0].securityContext.allowPrivilegeEscalation
value
:
false
-
equal
:
path
:
spec.template.spec.containers[0].securityContext.privileged
value
:
false
-
equal
:
path
:
spec.template.spec.containers[0].securityContext.readOnlyRootFilesystem
value
:
false
-
equal
:
path
:
spec.template.spec.containers[0].securityContext.runAsNonRoot
value
:
true
-
equal
:
path
:
spec.template.spec.containers[0].stdin
value
:
true
-
equal
:
path
:
spec.template.spec.containers[0].terminationMessagePath
value
:
"
/dev/termination-log"
-
equal
:
path
:
spec.template.spec.containers[0].terminationMessagePolicy
value
:
"
File"
-
equal
:
path
:
spec.template.spec.containers[0].tty
value
:
true
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