Mohammed Naser | 26eb9e0 | 2025-02-05 16:40:34 -0500 | [diff] [blame] | 1 | suite: priorityclass |
| 2 | tests: |
| 3 | - it: should support not having a priority class |
| 4 | templates: |
| 5 | - templates/deployment-api.yaml |
| 6 | - templates/deployment-scheduler.yaml |
| 7 | - templates/deployment-volume.yaml |
| 8 | - templates/cron-job-cinder-volume-usage-audit.yaml |
| 9 | - templates/deployment-backup.yaml |
| 10 | - templates/pod-rally-test.yaml |
| 11 | - templates/job-db-sync.yaml |
| 12 | asserts: |
| 13 | - template: templates/deployment-api.yaml |
| 14 | documentIndex: 3 |
| 15 | notExists: |
| 16 | path: spec.template.spec.priorityClassName |
| 17 | - template: templates/deployment-scheduler.yaml |
| 18 | documentIndex: 3 |
| 19 | notExists: |
| 20 | path: spec.template.spec.priorityClassName |
| 21 | - template: templates/deployment-volume.yaml |
| 22 | documentIndex: 3 |
| 23 | notExists: |
| 24 | path: spec.template.spec.priorityClassName |
| 25 | - template: templates/cron-job-cinder-volume-usage-audit.yaml |
| 26 | documentIndex: 3 |
| 27 | notExists: |
| 28 | path: spec.jobTemplate.spec.template.spec.priorityClassName |
| 29 | - template: templates/deployment-backup.yaml |
| 30 | documentIndex: 3 |
| 31 | notExists: |
| 32 | path: spec.template.spec.priorityClassName |
| 33 | - template: templates/pod-rally-test.yaml |
| 34 | documentIndex: 3 |
| 35 | notExists: |
| 36 | path: spec.priorityClassName |
| 37 | - template: templates/job-db-sync.yaml |
| 38 | documentIndex: 3 |
| 39 | notExists: |
| 40 | path: spec.template.spec.priorityClassName |
| 41 | |
| 42 | - it: should support setting a priority class |
| 43 | templates: |
| 44 | - templates/deployment-api.yaml |
| 45 | - templates/deployment-scheduler.yaml |
| 46 | - templates/deployment-volume.yaml |
| 47 | - templates/cron-job-cinder-volume-usage-audit.yaml |
| 48 | - templates/deployment-backup.yaml |
| 49 | - templates/pod-rally-test.yaml |
| 50 | - templates/job-db-sync.yaml |
| 51 | set: |
| 52 | pod: |
| 53 | priorityClassName: |
| 54 | cinder_api: platform |
| 55 | cinder_backup: platform |
| 56 | cinder_scheduler: platform |
| 57 | cinder_tests: platform |
| 58 | cinder_volume_usage_audit: platform |
| 59 | cinder_volume: platform |
| 60 | db_sync: platform |
| 61 | asserts: |
| 62 | - template: templates/deployment-api.yaml |
| 63 | documentIndex: 3 |
| 64 | equal: |
| 65 | path: spec.template.spec.priorityClassName |
| 66 | value: platform |
| 67 | - template: templates/deployment-scheduler.yaml |
| 68 | documentIndex: 3 |
| 69 | equal: |
| 70 | path: spec.template.spec.priorityClassName |
| 71 | value: platform |
| 72 | - template: templates/deployment-volume.yaml |
| 73 | documentIndex: 3 |
| 74 | equal: |
| 75 | path: spec.template.spec.priorityClassName |
| 76 | value: platform |
| 77 | - template: templates/cron-job-cinder-volume-usage-audit.yaml |
| 78 | documentIndex: 3 |
| 79 | equal: |
| 80 | path: spec.jobTemplate.spec.template.spec.priorityClassName |
| 81 | value: platform |
| 82 | - template: templates/deployment-backup.yaml |
| 83 | documentIndex: 3 |
| 84 | equal: |
| 85 | path: spec.template.spec.priorityClassName |
| 86 | value: platform |
| 87 | - template: templates/pod-rally-test.yaml |
| 88 | documentIndex: 3 |
| 89 | equal: |
| 90 | path: spec.priorityClassName |
| 91 | value: platform |
| 92 | - template: templates/job-db-sync.yaml |
| 93 | documentIndex: 3 |
| 94 | equal: |
| 95 | path: spec.template.spec.priorityClassName |
| 96 | value: platform |