provider_rbac_test.yaml 1007 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. suite: test provider rbac
  2. templates:
  3. - provider-rbac.yaml
  4. tests:
  5. - it: should grant gcp providers access to secretmanager configs
  6. set:
  7. providers:
  8. enabled: true
  9. list:
  10. - name: gcp
  11. type: gcp
  12. enabled: true
  13. image:
  14. repository: ghcr.io/external-secrets/provider-gcp
  15. tag: test
  16. documentIndex: 0
  17. asserts:
  18. - isKind:
  19. of: ClusterRole
  20. - contains:
  21. path: rules[0].resources
  22. content: secretmanagers
  23. - it: should grant aws providers access to secretsmanager configs
  24. set:
  25. providers:
  26. enabled: true
  27. list:
  28. - name: aws
  29. type: aws
  30. enabled: true
  31. image:
  32. repository: ghcr.io/external-secrets/provider-aws
  33. tag: test
  34. documentIndex: 0
  35. asserts:
  36. - isKind:
  37. of: ClusterRole
  38. - contains:
  39. path: rules[0].resources
  40. content: secretsmanagers