From a1819486379e19171a04a96e81ac295e6e2e26ca Mon Sep 17 00:00:00 2001 From: Stavros kois Date: Mon, 30 Jan 2023 13:09:28 +0200 Subject: [PATCH] job in cron test --- .../common-test/tests/cronjob/validation_test.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/library/common-test/tests/cronjob/validation_test.yaml b/library/common-test/tests/cronjob/validation_test.yaml index 06bebfcb3c..4e6e45630d 100644 --- a/library/common-test/tests/cronjob/validation_test.yaml +++ b/library/common-test/tests/cronjob/validation_test.yaml @@ -25,3 +25,16 @@ tests: asserts: - failedTemplate: errorMessage: CronJob - Expected non-empty + + - it: should fail with invalid completionMode (make sure job validation kicks in) + set: + controllers: + controller-name: + enabled: true + primary: true + type: CronJob + schedule: "* * * * *" + completionMode: not-a-mode + asserts: + - failedTemplate: + errorMessage: Job - Expected to be one of [Indexed, NonIndexed], but got [not-a-mode]