blob: c13f2bb5c3758812cda3868386de0fb7677c003b [file] [log] [blame]
suite: runtimeclass
tests:
- it: should support not having a runtime class
templates:
- templates/daemonset-health-manager.yaml
- templates/deployment-api.yaml
- templates/deployment-housekeeping.yaml
- templates/deployment-worker.yaml
- templates/job-db-sync.yaml
asserts:
- template: templates/daemonset-health-manager.yaml
documentIndex: 4
notExists:
path: spec.template.spec.runtimeClassName
- template: templates/deployment-api.yaml
documentIndex: 3
notExists:
path: spec.template.spec.runtimeClassName
- template: templates/deployment-housekeeping.yaml
documentIndex: 3
notExists:
path: spec.template.spec.runtimeClassName
- template: templates/deployment-worker.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/daemonset-health-manager.yaml
- templates/deployment-api.yaml
- templates/deployment-housekeeping.yaml
- templates/deployment-worker.yaml
- templates/job-db-sync.yaml
set:
pod:
runtimeClassName:
octavia_health_manager: kata-clh
octavia_api: kata-clh
octavia_housekeeping: kata-clh
octavia_worker: kata-clh
db_sync: kata-clh
asserts:
- template: templates/daemonset-health-manager.yaml
documentIndex: 4
equal:
path: spec.template.spec.runtimeClassName
value: kata-clh
- template: templates/deployment-api.yaml
documentIndex: 3
equal:
path: spec.template.spec.runtimeClassName
value: kata-clh
- template: templates/deployment-housekeeping.yaml
documentIndex: 3
equal:
path: spec.template.spec.runtimeClassName
value: kata-clh
- template: templates/deployment-worker.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