File tree Expand file tree Collapse file tree 2 files changed +70
-1
lines changed
charts/gitops-runtime/tests Expand file tree Collapse file tree 2 files changed +70
-1
lines changed Original file line number Diff line number Diff line change @@ -263,6 +263,19 @@ tests:
263
263
allow :
264
264
- 200
265
265
266
+ - it : HTTP trigger contains atLeastOnce if unset - rollout reporter
267
+ template : ' event-reporters/rollout-reporter/sensor.yaml'
268
+ values :
269
+ - ' ./values/mandatory-values.yaml'
270
+ set :
271
+ event-reporters.workflow.sensor :
272
+ atLeastOnce : false
273
+ asserts :
274
+ - equal :
275
+ path : spec.triggers[0].atLeastOnce
276
+ value : false
277
+
278
+
266
279
- it : HTTP trigger contains atLeastOnce if unset - workflow reporter
267
280
template : ' event-reporters/workflow-reporter/sensor.yaml'
268
281
values :
@@ -274,3 +287,25 @@ tests:
274
287
- equal :
275
288
path : spec.triggers[0].atLeastOnce
276
289
value : false
290
+
291
+ - it : uses the correct eventBusName if type is jetstream - rollout reporter
292
+ template : ' event-reporters/rollout-reporter/sensor.yaml'
293
+ values :
294
+ - ' ./values/mandatory-values.yaml'
295
+ set :
296
+ global.runtime.eventBus.type : jetstream
297
+ asserts :
298
+ - equal :
299
+ path : spec.eventBusName
300
+ value : codefresh-eventbus-jetstream
301
+
302
+ - it : uses the correct eventBusName if type is jetstream - workflow reporter
303
+ template : ' event-reporters/workflow-reporter/sensor.yaml'
304
+ values :
305
+ - ' ./values/mandatory-values.yaml'
306
+ set :
307
+ global.runtime.eventBus.type : jetstream
308
+ asserts :
309
+ - equal :
310
+ path : spec.eventBusName
311
+ value : codefresh-eventbus-jetstream
Original file line number Diff line number Diff line change @@ -29,6 +29,40 @@ tests:
29
29
path : spec.jetstream
30
30
- notExists :
31
31
path : spec.nats
32
+
33
+ - it : Should create an EventBus with the correct default name (nats)
34
+ template : eventbus/codefresh-eventbus.yaml
35
+ values :
36
+ - ./values/mandatory-values.yaml
37
+ set :
38
+ global.runtime.eventBus.type : nats
39
+ asserts :
40
+ - equal :
41
+ path : metadata.name
42
+ value : codefresh-eventbus
43
+
44
+ - it : Should create an EventBus with the correct override name (nats)
45
+ template : eventbus/codefresh-eventbus.yaml
46
+ values :
47
+ - ./values/mandatory-values.yaml
48
+ set :
49
+ global.runtime.eventBus :
50
+ name : manual-override
51
+ type : nats
52
+ asserts :
53
+ - equal :
54
+ path : metadata.name
55
+ value : manual-override
56
+
57
+ - it : Should create an EventBus with the correct override name (jetstream)
58
+ template : eventbus/codefresh-eventbus.yaml
59
+ values :
60
+ - ./values/mandatory-values.yaml
61
+ set :
62
+ global.runtime.eventBus :
63
+ name : manual-override
64
+ type : jetstream
65
+ asserts :
32
66
- equal :
33
67
path : metadata.name
34
- value : codefresh-eventbus-jetstream
68
+ value : manual-override
You can’t perform that action at this time.
0 commit comments