serviceaccount_test.yaml 831 B

1234567891011121314151617181920212223242526272829
  1. # Copyright Materialize, Inc. and contributors. All rights reserved.
  2. #
  3. # Use of this software is governed by the Business Source License
  4. # included in the LICENSE file at the root of this repository.
  5. #
  6. # As of the Change Date specified in that file, in accordance with
  7. # the Business Source License, use of this software will be governed
  8. # by the Apache License, Version 2.0.
  9. suite: test serviceaccount
  10. templates:
  11. - serviceaccount.yaml
  12. tests:
  13. - it: should create a serviceaccount when enabled
  14. set:
  15. serviceAccount.create: true
  16. asserts:
  17. - isKind:
  18. of: ServiceAccount
  19. - equal:
  20. path: metadata.name
  21. value: orchestratord
  22. - it: should not create a serviceaccount when disabled
  23. set:
  24. serviceAccount.create: false
  25. asserts:
  26. - hasDocuments:
  27. count: 0