Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions deploy/charts/discovery-agent/tests/configmap_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,38 @@ tests:
path: data["config.yaml"]
pattern: '\^helm\\\.sh/\.\*'

# Test claimable certs when enabled
- it: "should include 'claimable_certs: true' when claimableCerts is true"
set:
config.clusterName: test-cluster
config.tsgID: "123456"
config.claimableCerts: true
asserts:
- matchRegex:
path: data["config.yaml"]
pattern: 'claimable_certs: true'

# Test claimable certs when disabled
- it: "should not include 'claimable_certs' when claimableCerts is false"
set:
config.clusterName: test-cluster
config.tsgID: "123456"
config.claimableCerts: false
asserts:
- notMatchRegex:
path: data["config.yaml"]
pattern: 'claimable_certs'

# Test claimable certs default
- it: "should not include 'claimable_certs' when claimableCerts is unset"
set:
config.clusterName: test-cluster
config.tsgID: "123456"
asserts:
- notMatchRegex:
path: data["config.yaml"]
pattern: 'claimable_certs'

# Test data-gatherers are present
- it: should include all data-gatherers
set:
Expand Down
Loading