blob: d93e9dfc94dd2bc8c4b9b63c7af8d113cf532231 [file] [log] [blame]
suite: runtimeclass
tests:
- it: should support not having a runtime class
templates:
- templates/deployment-api.yaml
- templates/job-db-sync.yaml
asserts:
- template: templates/deployment-api.yaml
documentIndex: 3
notExists:
path: spec.template.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-api.yaml
- templates/job-db-sync.yaml
set:
pod:
runtimeClassName:
ironic_api: kata-clh
db_sync: kata-clh
asserts:
- template: templates/deployment-api.yaml
documentIndex: 3
equal:
path: spec.template.spec.runtimeClassName
value: kata-clh
- template: templates/job-db-sync.yaml
documentIndex: 3
equal:
path: spec.template.spec.runtimeClassName
value: kata-clh