blob: ebeb9768f6c1cf026f954ec0c2a4cb4e0fb6f68f [file] [log] [blame]
suite: runtimeclass
tests:
- it: should support not having a runtime class
templates:
- templates/deployment.yaml
- templates/pod-helm-tests.yaml
- templates/job-db-sync.yaml
asserts:
- template: templates/deployment.yaml
documentIndex: 3
notExists:
path: spec.template.spec.runtimeClassName
- template: templates/pod-helm-tests.yaml
documentIndex: 3
notExists:
path: spec.runtimeClassName
- template: templates/job-db-sync.yaml
documentIndex: 3
notExists:
path: spec.template.spec.runtimeClassName
- it: should support setting a runtime class
templates:
- templates/deployment.yaml
- templates/pod-helm-tests.yaml
- templates/job-db-sync.yaml
set:
pod:
runtimeClassName:
horizon: kata-clh
horizon_tests: kata-clh
db_sync: kata-clh
asserts:
- template: templates/deployment.yaml
documentIndex: 3
equal:
path: spec.template.spec.runtimeClassName
value: kata-clh
- template: templates/pod-helm-tests.yaml
documentIndex: 3
equal:
path: spec.runtimeClassName
value: kata-clh
- template: templates/job-db-sync.yaml
documentIndex: 3
equal:
path: spec.template.spec.runtimeClassName
value: kata-clh