Chart: Use generic values for ConfigMap test. (#11879)

This commit is contained in:
Marco Ebert 2024-08-26 22:33:39 +02:00 committed by GitHub
parent 27697abbcb
commit 2e208230df
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -16,16 +16,16 @@ tests:
- it: should create a ConfigMap with templated values if `controller.config` contains templates - it: should create a ConfigMap with templated values if `controller.config` contains templates
set: set:
controller.config: controller.config:
global-rate-limit-memcached-host: "memcached.{{ .Release.Namespace }}.svc.kubernetes.local" template: "test.{{ .Release.Namespace }}.svc.kubernetes.local"
global-rate-limit-memcached-port: 11211 integer: 12345
use-gzip: true boolean: true
asserts: asserts:
- equal: - equal:
path: data.global-rate-limit-memcached-host path: data.template
value: memcached.NAMESPACE.svc.kubernetes.local value: test.NAMESPACE.svc.kubernetes.local
- equal: - equal:
path: data.global-rate-limit-memcached-port path: data.integer
value: "11211" value: "12345"
- equal: - equal:
path: data.use-gzip path: data.boolean
value: "true" value: "true"