mirror of
https://github.com/truenas/charts.git
synced 2026-06-17 15:38:49 +08:00
add fail case
This commit is contained in:
@@ -12,7 +12,6 @@ tests:
|
||||
primary: true
|
||||
type: CronJob
|
||||
schedule: "*/1 * * * *"
|
||||
schedule: "*/1 * * * *"
|
||||
podSpec: {}
|
||||
asserts:
|
||||
- documentIndex: &cronJobDoc 0
|
||||
@@ -91,3 +90,19 @@ tests:
|
||||
value:
|
||||
disk: hdd
|
||||
cpu: amd
|
||||
# Failures
|
||||
- it: should fail with empty value on nodeSelector
|
||||
set:
|
||||
podOptions:
|
||||
nodeSelector:
|
||||
disk: ""
|
||||
controllers:
|
||||
controller-name1:
|
||||
enabled: true
|
||||
primary: true
|
||||
type: CronJob
|
||||
schedule: "*/1 * * * *"
|
||||
podSpec: {}
|
||||
asserts:
|
||||
- failedTemplate:
|
||||
errorMessage: Expected non-empty value on <nodeSelector> [disk] key.
|
||||
|
||||
Reference in New Issue
Block a user