Skip to content

Commit

Permalink
added helm tests for eso integration
Browse files Browse the repository at this point in the history
  • Loading branch information
facchettos committed Sep 4, 2024
1 parent 129d48c commit 19e0be7
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
20 changes: 20 additions & 0 deletions chart/tests/clusterrole_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,26 @@ tests:
resources: [ "nodes" ]
verbs: [ "get", "list" ]

- it: externalSecrets
set:
integrations:
externalSecrets:
enabled: true
release:
name: my-release
namespace: my-namespace
asserts:
- hasDocuments:
count: 1
- lengthEqual:
path: rules
count: 1
- contains:
path: rules
content:
apiGroups: ["apiextensions.k8s.io"]
resources: ["customresourcedefinitions"]
verbs: ["get", "list", "watch"]
- it: kubeVirt
set:
integrations:
Expand Down
23 changes: 23 additions & 0 deletions chart/tests/role_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,29 @@ tests:
resources: [ "pods" ]
verbs: [ "get", "list" ]

- it: external secret test
set:
integrations:
externalSecrets:
enabled: true
sync:
externalSecrets:
enabled: true
release:
name: my-release
namespace: my-namespace
asserts:
- hasDocuments:
count: 1
- equal:
path: kind
value: Role
- contains:
path: rules
content:
apiGroups: ["exrternal-secrets.io"]
resources: ["externalsecrets"]
verbs: ["create", "delete", "patch", "update", "get", "list", "watch"]
- it: kubeVirt test
set:
integrations:
Expand Down

0 comments on commit 19e0be7

Please sign in to comment.