mirror of
https://github.com/truenas/charts.git
synced 2024-04-21 15:21:45 +00:00
add test case
This commit is contained in:
@@ -596,6 +596,24 @@ tests:
|
||||
- failedTemplate:
|
||||
errorMessage: Persistence - Expected <readOnly> to be [boolean], but got [string]
|
||||
|
||||
- it: should fail with empty readOnly
|
||||
set:
|
||||
image: *image
|
||||
workload:
|
||||
workload-name: *workload
|
||||
persistence:
|
||||
vol-name:
|
||||
enabled: true
|
||||
type: pvc
|
||||
mountPath: /some/path
|
||||
targetSelector:
|
||||
workload-name:
|
||||
container-name1:
|
||||
readOnly:
|
||||
asserts:
|
||||
- failedTemplate:
|
||||
errorMessage: Persistence - Expected <readOnly> to be [boolean], but got [invalid]
|
||||
|
||||
- it: should fail with empty mountPath
|
||||
set:
|
||||
image: *image
|
||||
|
||||
Reference in New Issue
Block a user