blob: 080d6c1f5e4e46bfe5d2af7b605e42f565bbb4b8 [file] [log] [blame]
suite: runtimeclass
tests:
- it: should support not having a runtime class
templates:
- templates/deployment-api.yaml
- templates/deployment-data.yaml
- templates/deployment-scheduler.yaml
- templates/deployment-share.yaml
- templates/pod-rally-test.yaml
- templates/job-db-sync.yaml
asserts:
- template: templates/deployment-api.yaml
documentIndex: 3
notExists:
path: spec.template.spec.runtimeClassName
- template: templates/deployment-data.yaml
documentIndex: 3
notExists:
path: spec.template.spec.runtimeClassName
- template: templates/deployment-scheduler.yaml
documentIndex: 3
notExists:
path: spec.template.spec.runtimeClassName
- template: templates/deployment-share.yaml
documentIndex: 3
notExists:
path: spec.template.spec.runtimeClassName
- template: templates/pod-rally-test.yaml
documentIndex: 1
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-api.yaml
- templates/deployment-data.yaml
- templates/deployment-scheduler.yaml
- templates/deployment-share.yaml
- templates/pod-rally-test.yaml
- templates/job-db-sync.yaml
set:
pod:
runtimeClassName:
manila_api: kata-clh
manila_data: kata-clh
manila_scheduler: kata-clh
manila_tests: kata-clh
manila_share: 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/deployment-data.yaml
documentIndex: 3
equal:
path: spec.template.spec.runtimeClassName
value: kata-clh
- template: templates/deployment-scheduler.yaml
documentIndex: 3
equal:
path: spec.template.spec.runtimeClassName
value: kata-clh
- template: templates/deployment-share.yaml
documentIndex: 3
equal:
path: spec.template.spec.runtimeClassName
value: kata-clh
- template: templates/pod-rally-test.yaml
documentIndex: 1
equal:
path: spec.runtimeClassName
value: kata-clh
- template: templates/job-db-sync.yaml
documentIndex: 3
equal:
path: spec.template.spec.runtimeClassName
value: kata-clh