File tree Expand file tree Collapse file tree 2 files changed +27
-0
lines changed
Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " helm-charts " : patch
3+ ---
4+
5+ fix if condition typo
Original file line number Diff line number Diff line change @@ -107,3 +107,25 @@ tests:
107107 - equal :
108108 path : spec.template.spec.containers[0].ports[2].containerPort
109109 value : 5320
110+ - it : should include initContainers when mongodb.enabled is true
111+ set :
112+ mongodb :
113+ enabled : true
114+ asserts :
115+ - isNotEmpty :
116+ path : spec.template.spec.initContainers
117+ - equal :
118+ path : spec.template.spec.initContainers[0].name
119+ value : wait-for-mongodb
120+ - equal :
121+ path : spec.template.spec.initContainers[0].image
122+ value : busybox
123+ - contains :
124+ path : spec.template.spec.initContainers[0].command
125+ content : sh
126+ - contains :
127+ path : spec.template.spec.initContainers[0].command
128+ content : -c
129+ - matchRegex :
130+ path : spec.template.spec.initContainers[0].command[2]
131+ pattern : " until nc -z .+-mongodb [0-9]+; do echo waiting for mongodb; sleep 2; done;"
You can’t perform that action at this time.
0 commit comments