scheduler_name_test.yaml 557 B

1234567891011121314151617181920
  1. ---
  2. suite: test schedulerName
  3. templates:
  4. - cert-controller-deployment.yaml
  5. - deployment.yaml
  6. - webhook-deployment.yaml
  7. tests:
  8. - it: should set schedulerName to set value if given
  9. set:
  10. schedulerName: my-scheduler
  11. webhook.schedulerName: my-scheduler
  12. certController.schedulerName: my-scheduler
  13. asserts:
  14. - equal:
  15. path: spec.template.spec.schedulerName
  16. value: my-scheduler
  17. - it: should not set schedulerName by default
  18. asserts:
  19. - notExists:
  20. path: spec.template.spec.schedulerName