suite: job validation test templates: - common.yaml tests: - it: should fail with invalid completionMode set: workload: workload-name: enabled: true primary: true type: Job completionMode: not-a-mode podSpec: {} asserts: - failedTemplate: errorMessage: Job - Expected to be one of [Indexed, NonIndexed], but got [not-a-mode] - it: should fail with invalid completionMode set: workload: workload-name: enabled: true primary: true type: Job completionMode: not-a-mode podSpec: {} asserts: - failedTemplate: errorMessage: Job - Expected to be one of [Indexed, NonIndexed], but got [not-a-mode] - it: should fail with restartPolicy set to Always set: workload: workload-name: enabled: true primary: true type: Job restartPolicy: Always podSpec: {} asserts: - failedTemplate: errorMessage: Expected to be set when is set to [Indexed]