blob: 1a80ac3d6d5b0e8bdfd16d1aa9cb72a0c506ea76 [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
- templates/job-bootstrap.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
- template: templates/job-bootstrap.yaml
documentIndex: 1
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
- templates/job-bootstrap.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
bootstrap: 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
- template: templates/job-bootstrap.yaml
documentIndex: 1
equal:
path: spec.template.spec.runtimeClassName
value: kata-clh