add unittest
This commit is contained in:
parent
66625c5ca0
commit
fff625d834
1 changed files with 17 additions and 0 deletions
|
@ -12,3 +12,20 @@ tests:
|
||||||
- equal:
|
- equal:
|
||||||
path: metadata.name
|
path: metadata.name
|
||||||
value: RELEASE-NAME-ingress-nginx-controller
|
value: RELEASE-NAME-ingress-nginx-controller
|
||||||
|
|
||||||
|
- it: can template config
|
||||||
|
set:
|
||||||
|
controller.config:
|
||||||
|
global-rate-limit-memcached-host: "memcached.{{ .Release.Namespace }}.svc.kubernetes.local"
|
||||||
|
global-rate-limit-memcached-port: 11211
|
||||||
|
use-gzip: true
|
||||||
|
asserts:
|
||||||
|
- equal:
|
||||||
|
path: data.global-rate-limit-memcached-host
|
||||||
|
value: memcached.NAMESPACE.svc.kubernetes.local
|
||||||
|
- equal:
|
||||||
|
path: data.global-rate-limit-memcached-port
|
||||||
|
value: "11211"
|
||||||
|
- equal:
|
||||||
|
path: data.use-gzip
|
||||||
|
value: "true"
|
||||||
|
|
Loading…
Reference in a new issue