Skip to content

Commit c2a182b

Browse files
committed
fixed unit test for default eventbus
1 parent 28553cd commit c2a182b

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

charts/gitops-runtime/tests/eventbus_test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ tests:
3939
asserts:
4040
- equal:
4141
path: metadata.name
42-
value: codefresh-eventbus
42+
value: codefresh-eventbus-jetstream
4343

4444
- it: Should create an EventBus with the correct override name (nats)
4545
template: eventbus/codefresh-eventbus.yaml

charts/gitops-runtime/tests/global_constraints_test.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ tests:
330330
template: eventbus/codefresh-eventbus.yaml
331331
asserts:
332332
- equal:
333-
path: spec.nats.native.nodeSelector
333+
path: spec.jetstream.nodeSelector
334334
value:
335335
some-key: some-value
336336
extra-key: extra-value
@@ -342,7 +342,7 @@ tests:
342342
template: eventbus/codefresh-eventbus.yaml
343343
asserts:
344344
- equal:
345-
path: spec.nats.native.nodeSelector
345+
path: spec.jetstream.nodeSelector
346346
value:
347347
some-key: another-value
348348
foo: bar
@@ -353,7 +353,7 @@ tests:
353353
template: eventbus/codefresh-eventbus.yaml
354354
asserts:
355355
- equal:
356-
path: spec.nats.native.tolerations
356+
path: spec.jetstream.tolerations
357357
value:
358358
- key: some-key
359359
operator: Equal
@@ -367,7 +367,7 @@ tests:
367367
template: eventbus/codefresh-eventbus.yaml
368368
asserts:
369369
- equal:
370-
path: spec.nats.native.tolerations
370+
path: spec.jetstream.tolerations
371371
value:
372372
- key: another-key
373373
operator: Equal

charts/gitops-runtime/tests/values/subcharts-constraints-values.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@ anchors:
1212
global:
1313
runtime:
1414
eventBus:
15-
nats:
16-
native:
17-
nodeSelector: *nodeSelector
18-
tolerations: *tolerations
15+
jetstream:
16+
nodeSelector: *nodeSelector
17+
tolerations: *tolerations
1918

2019
app-proxy:
2120
nodeSelector: *nodeSelector

0 commit comments

Comments
 (0)