diff --git a/library/common-test/tests/container/volumeMounts_test.yaml b/library/common-test/tests/container/volumeMounts_test.yaml index 83d0999eaa..12d24b0c57 100644 --- a/library/common-test/tests/container/volumeMounts_test.yaml +++ b/library/common-test/tests/container/volumeMounts_test.yaml @@ -596,6 +596,24 @@ tests: - failedTemplate: errorMessage: Persistence - Expected 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 to be [boolean], but got [invalid] + - it: should fail with empty mountPath set: image: *image