1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- suite: init container data test (upgrade)
- templates:
- - common.yaml
- tests:
- # Failures
- - it: should fail with empty type on init container
- set:
- image:
- repository: nginx
- tag: 1.19.0
- pullPolicy: IfNotPresent
- workload:
- workload-name:
- enabled: true
- primary: true
- type: Deployment
- podSpec:
- containers:
- container-name1:
- enabled: true
- primary: true
- imageSelector: image
- probes:
- liveness:
- enabled: false
- readiness:
- enabled: false
- startup:
- enabled: false
- initContainers:
- container-name1:
- enabled: true
- type: ""
- asserts:
- - failedTemplate:
- errorMessage: InitContainer - Expected non-empty <type>
- - it: should fail with invalid type on init container
- set:
- image:
- repository: nginx
- tag: 1.19.0
- pullPolicy: IfNotPresent
- workload:
- workload-name:
- enabled: true
- primary: true
- type: Deployment
- podSpec:
- containers:
- container-name1:
- enabled: true
- primary: true
- imageSelector: image
- probes:
- liveness:
- enabled: false
- readiness:
- enabled: false
- startup:
- enabled: false
- initContainers:
- container-name1:
- enabled: true
- type: invalid
- asserts:
- - failedTemplate:
- errorMessage: InitContainer - Expected <type> to be one of [init, install, upgrade], but got [invalid]
|