Skip to content
Snippets Groups Projects
Commit bca95c1f authored by OZGCloud's avatar OZGCloud
Browse files

OZG-5238 Set values in deployment test

parent feca2410
No related branches found
No related tags found
No related merge requests found
...@@ -30,6 +30,11 @@ templates: ...@@ -30,6 +30,11 @@ templates:
- templates/deployment.yaml - templates/deployment.yaml
tests: tests:
- it: should have a volume for the mongodb certificate - it: should have a volume for the mongodb certificate
set:
ozgcloud:
environment: test
bundesland: sh
bezeichner: helm
asserts: asserts:
- contains: - contains:
path: spec.template.spec.volumes path: spec.template.spec.volumes
...@@ -39,6 +44,11 @@ tests: ...@@ -39,6 +44,11 @@ tests:
secretName: ozg-mongodb-tls-cert secretName: ozg-mongodb-tls-cert
optional: true optional: true
- it: should mount mongodb certificate volume - it: should mount mongodb certificate volume
set:
ozgcloud:
environment: test
bundesland: sh
bezeichner: helm
asserts: asserts:
- contains: - contains:
path: spec.template.spec.containers[0].volumeMounts path: spec.template.spec.containers[0].volumeMounts
...@@ -49,6 +59,10 @@ tests: ...@@ -49,6 +59,10 @@ tests:
readOnly: true readOnly: true
- it: should configure internal mongodb if not useExternal - it: should configure internal mongodb if not useExternal
set: set:
ozgcloud:
environment: test
bundesland: sh
bezeichner: helm
database.useExternal: false database.useExternal: false
asserts: asserts:
- contains: - contains:
...@@ -67,6 +81,10 @@ tests: ...@@ -67,6 +81,10 @@ tests:
value: administration-database value: administration-database
- it: should configure external mongodb if useExternal - it: should configure external mongodb if useExternal
set: set:
ozgcloud:
environment: test
bundesland: sh
bezeichner: helm
database.useExternal: true database.useExternal: true
asserts: asserts:
- contains: - contains:
......
...@@ -29,6 +29,11 @@ release: ...@@ -29,6 +29,11 @@ release:
namespace: helm-test namespace: helm-test
tests: tests:
- it: should use default image pull secret - it: should use default image pull secret
set:
ozgcloud:
environment: test
bundesland: sh
bezeichner: helm
asserts: asserts:
- contains: - contains:
path: spec.template.spec.imagePullSecrets path: spec.template.spec.imagePullSecrets
...@@ -36,6 +41,10 @@ tests: ...@@ -36,6 +41,10 @@ tests:
name: administration-image-pull-secret name: administration-image-pull-secret
- it: should use customizable image pull secret - it: should use customizable image pull secret
set: set:
ozgcloud:
environment: test
bundesland: sh
bezeichner: helm
imagePullSecret: custom-image-pull-secret imagePullSecret: custom-image-pull-secret
asserts: asserts:
- contains: - contains:
......
...@@ -30,6 +30,10 @@ release: ...@@ -30,6 +30,10 @@ release:
tests: tests:
- it: should have customizable resources - it: should have customizable resources
set: set:
ozgcloud:
environment: test
bundesland: sh
bezeichner: helm
resources: { "test": 1 } resources: { "test": 1 }
asserts: asserts:
- equal: - equal:
......
...@@ -31,6 +31,10 @@ templates: ...@@ -31,6 +31,10 @@ templates:
tests: tests:
- it: should override the spring profiles - it: should override the spring profiles
set: set:
ozgcloud:
environment: test
bundesland: sh
bezeichner: helm
env.overrideSpringProfiles: oc,dev,ea env.overrideSpringProfiles: oc,dev,ea
asserts: asserts:
- isKind: - isKind:
...@@ -41,6 +45,11 @@ tests: ...@@ -41,6 +45,11 @@ tests:
name: spring_profiles_active name: spring_profiles_active
value: oc,dev,ea value: oc,dev,ea
- it: should generate the spring profiles - it: should generate the spring profiles
set:
ozgcloud:
environment: test
bundesland: sh
bezeichner: helm
asserts: asserts:
- isKind: - isKind:
of: Deployment of: Deployment
......
...@@ -31,6 +31,11 @@ set: ...@@ -31,6 +31,11 @@ set:
ozgcloud.environment: "default" ozgcloud.environment: "default"
tests: tests:
- it: should have metadata values - it: should have metadata values
set:
ozgcloud:
environment: test
bundesland: sh
bezeichner: helm
asserts: asserts:
- isKind: - isKind:
of: Deployment of: Deployment
...@@ -43,6 +48,11 @@ tests: ...@@ -43,6 +48,11 @@ tests:
- exists: - exists:
path: metadata.labels path: metadata.labels
- it: should have correct general settings - it: should have correct general settings
set:
ozgcloud:
environment: test
bundesland: sh
bezeichner: helm
asserts: asserts:
- equal: - equal:
path: spec.progressDeadlineSeconds path: spec.progressDeadlineSeconds
...@@ -71,6 +81,11 @@ tests: ...@@ -71,6 +81,11 @@ tests:
path: spec.strategy.type path: spec.strategy.type
value: "RollingUpdate" value: "RollingUpdate"
- it: should have correct template configuration - it: should have correct template configuration
set:
ozgcloud:
environment: test
bundesland: sh
bezeichner: helm
asserts: asserts:
- equal: - equal:
path: spec.template.metadata.labels["app.kubernetes.io/instance"] path: spec.template.metadata.labels["app.kubernetes.io/instance"]
...@@ -110,6 +125,11 @@ tests: ...@@ -110,6 +125,11 @@ tests:
path: spec.template.spec.terminationGracePeriodSeconds path: spec.template.spec.terminationGracePeriodSeconds
value: 300000000 value: 300000000
- it: should have correct container configuration - it: should have correct container configuration
set:
ozgcloud:
environment: test
bundesland: sh
bezeichner: helm
asserts: asserts:
- equal: - equal:
path: spec.template.spec.containers[0].name path: spec.template.spec.containers[0].name
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment