diff --git a/library/common-test/tests/pod/node_selector_test.yaml b/library/common-test/tests/pod/node_selector_test.yaml index 625eef603f..84a5efe448 100644 --- a/library/common-test/tests/pod/node_selector_test.yaml +++ b/library/common-test/tests/pod/node_selector_test.yaml @@ -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 [disk] key.