blob: a0fda2b88f80eb1cb1f360c7684262f1db3d564a [file] [log] [blame]
suite: priorityclass
tests:
- it: should support not having a priority 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.priorityClassName
- template: templates/pod-helm-tests.yaml
documentIndex: 3
notExists:
path: spec.priorityClassName
- template: templates/job-db-sync.yaml
documentIndex: 3
notExists:
path: spec.template.spec.priorityClassName
- it: should support setting a priority class
templates:
- templates/deployment.yaml
- templates/pod-helm-tests.yaml
- templates/job-db-sync.yaml
set:
pod:
priorityClassName:
horizon: platform
horizon_tests: platform
db_sync: platform
asserts:
- template: templates/deployment.yaml
documentIndex: 3
equal:
path: spec.template.spec.priorityClassName
value: platform
- template: templates/pod-helm-tests.yaml
documentIndex: 3
equal:
path: spec.priorityClassName
value: platform
- template: templates/job-db-sync.yaml
documentIndex: 3
equal:
path: spec.template.spec.priorityClassName
value: platform