suite: cronjob validation test templates: - common.yaml tests: - it: should fail with invalid concurrencyPolicy set: workload: workload-name: enabled: true primary: true type: CronJob concurrencyPolicy: not-a-policy podSpec: {} asserts: - failedTemplate: errorMessage: CronJob - Expected to be one of [Allow, Forbid, Replace], but got [not-a-policy] - it: should fail with empty schedule set: workload: workload-name: enabled: true primary: true type: CronJob schedule: podSpec: {} asserts: - failedTemplate: errorMessage: CronJob - Expected non-empty - it: should fail with restartPolicy set to Always set: workload: workload-name: enabled: true primary: true type: CronJob schedule: "* * * * *" restartPolicy: Always podSpec: {} asserts: - failedTemplate: errorMessage: Expected to be one of [Indexed, NonIndexed], but got [not-a-mode]