Skip to content

Commit b7bdbdd

Browse files
committed
fixed unit test for default eventbus
1 parent 4612973 commit b7bdbdd

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
@@ -119,13 +119,13 @@ tests:
119119
template: event-reporters/workflow-reporter/sensor.yaml
120120
# -- codefresh-eventbus
121121
- equal:
122-
path: spec.nats.native.nodeSelector
122+
path: spec.jetstream.nodeSelector
123123
value:
124124
some-key: some-value
125125
extra-key: extra-value
126126
template: eventbus/codefresh-eventbus.yaml
127127
- equal:
128-
path: spec.nats.native.tolerations
128+
path: spec.jetstream.tolerations
129129
value:
130130
- key: some-key
131131
operator: Equal
@@ -456,13 +456,13 @@ tests:
456456
template: event-reporters/workflow-reporter/sensor.yaml
457457
# -- codefresh-eventbus
458458
- equal:
459-
path: spec.nats.native.nodeSelector
459+
path: spec.jetstream.nodeSelector
460460
value:
461461
some-key: another-value
462462
foo: bar
463463
template: eventbus/codefresh-eventbus.yaml
464464
- equal:
465-
path: spec.nats.native.tolerations
465+
path: spec.jetstream.tolerations
466466
value:
467467
- key: another-key
468468
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)