Skip to content

Commit

Permalink
Chart: Use generic values for ConfigMap test. (#11877)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gacko authored Aug 26, 2024
1 parent e9f6c8e commit f6595f5
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions charts/ingress-nginx/tests/controller-configmap_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,16 @@ tests:
- it: should create a ConfigMap with templated values if `controller.config` contains templates
set:
controller.config:
use-gzip: true
template: "test.{{ .Release.Namespace }}.svc.kubernetes.local"
integer: 12345
boolean: true
asserts:
- equal:
path: data.use-gzip
path: data.template
value: test.NAMESPACE.svc.kubernetes.local
- equal:
path: data.integer
value: "12345"
- equal:
path: data.boolean
value: "true"

0 comments on commit f6595f5

Please sign in to comment.