From 3c28754f68e48e15a8cb0af00374cd219328a7f3 Mon Sep 17 00:00:00 2001 From: Stavros kois Date: Sat, 11 Feb 2023 22:52:01 +0200 Subject: [PATCH] add test case --- .../tests/container/volumeMounts_test.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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