Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: Caleb Lloyd <[email protected]>
  • Loading branch information
Caleb Lloyd committed Jun 18, 2024
1 parent 1eb0422 commit 4e361fb
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 13 deletions.
4 changes: 2 additions & 2 deletions helm/charts/nats/test/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ config:
websocket:
enabled: true
merge:
compression: false
compression: true
patch: [{op: add, path: /same_origin, value: true}]
mqtt:
enabled: true
Expand Down Expand Up @@ -358,7 +358,7 @@ config:
}
expected.Conf.Value["websocket"] = map[string]any{
"port": int64(8080),
"compression": false,
"compression": true,
"no_tls": true,
"same_origin": true,
}
Expand Down
5 changes: 2 additions & 3 deletions helm/charts/nats/test/ports_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,8 @@ service:
"no_advertise": true,
}
expected.Conf.Value["websocket"] = map[string]any{
"port": int64(1003),
"compression": true,
"no_tls": true,
"port": int64(1003),
"no_tls": true,
}
expected.Conf.Value["mqtt"] = map[string]any{
"port": int64(1004),
Expand Down
10 changes: 4 additions & 6 deletions helm/charts/nats/test/resources_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,8 @@ natsBox:
}

expected.Conf.Value["websocket"] = map[string]any{
"port": int64(8080),
"no_tls": true,
"compression": true,
"port": int64(8080),
"no_tls": true,
}

env := []corev1.EnvVar{
Expand Down Expand Up @@ -513,9 +512,8 @@ natsBox:
expected := DefaultResources(t, test)

expected.Conf.Value["websocket"] = map[string]any{
"port": int64(8080),
"no_tls": true,
"compression": true,
"port": int64(8080),
"no_tls": true,
}

annotations := func() map[string]string {
Expand Down
3 changes: 1 addition & 2 deletions helm/charts/nats/test/tls_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@ config:
"no_advertise": true,
}
expected.Conf.Value["websocket"] = map[string]any{
"port": int64(8080),
"compression": true,
"port": int64(8080),
}
expected.Conf.Value["mqtt"] = map[string]any{
"port": int64(1883),
Expand Down

0 comments on commit 4e361fb

Please sign in to comment.