Files
charts/library/common-test/tests/deployment/validation_test.yaml
T
2023-01-30 15:05:55 +02:00

31 lines
863 B
YAML

suite: deployment validation test
templates:
- common.yaml
tests:
- it: should fail with invalid strategy
set:
controllers:
controller-name:
enabled: true
primary: true
type: Deployment
strategy: not-a-strategy
podSpec: {}
asserts:
- failedTemplate:
errorMessage: Deployment - Expected <strategy> to be one of [Recreate, RollingUpdate], but got [not-a-strategy]
- it: should fail with rollingUpdate not a dict
set:
controllers:
controller-name:
enabled: true
primary: true
type: Deployment
strategy: RollingUpdate
rollingUpdate: "not a dict"
podSpec: {}
asserts:
- failedTemplate:
errorMessage: Deployment - Expected <rollingUpdate> to be a dictionary, but got [string]