mirror of
https://github.com/truenas/charts.git
synced 2024-04-21 15:21:45 +00:00
31 lines
863 B
YAML
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]
|