@@ -127,7 +127,7 @@ tests:
127127
128128 - contains : *contains_env
129129
130- - it : Deployments envFrom defaults include st2-urls configMap
130+ - it : Deployments envFrom defaults include st2-urls configMap and st2chatops secretRef
131131 template : deployments.yaml
132132 set :
133133 st2 : { packs: { sensors: [] } } # ensure only 1 sensor
@@ -143,11 +143,43 @@ tests:
143143 content :
144144 configMapRef :
145145 name : st2ha-st2-urls
146- # this is how st2chatops.env loads vars
146+ documentIndex : 0
147+ - contains : *contains_st2_urls
148+ documentIndex : 1
149+ - contains : *contains_st2_urls
150+ documentIndex : 2
147151 - contains :
148152 path : spec.template.spec.containers[0].envFrom
149153 content :
150154 configMapRef :
155+ name : st2ha-st2-urls
156+ optional : true # TODO: consider dropping this unique diff from other deployments
157+ documentIndex : 3 # st2web
158+ - contains : *contains_st2_urls
159+ documentIndex : 4
160+ - contains : *contains_st2_urls
161+ documentIndex : 5
162+ - contains : *contains_st2_urls
163+ documentIndex : 6
164+ - contains : *contains_st2_urls
165+ documentIndex : 7
166+ - contains : *contains_st2_urls
167+ documentIndex : 8
168+ - contains : *contains_st2_urls
169+ documentIndex : 9
170+ - contains : *contains_st2_urls
171+ documentIndex : 10
172+ - contains : *contains_st2_urls
173+ documentIndex : 11
174+ - contains : *contains_st2_urls
175+ documentIndex : 12
176+ - contains : *contains_st2_urls
177+ documentIndex : 13
178+ # this is how st2chatops.env loads vars
179+ - contains :
180+ path : spec.template.spec.containers[0].envFrom
181+ content :
182+ secretRef : # not a configMap
151183 name : st2ha-st2chatops
152184 documentIndex : 13
153185
0 commit comments