Skip to content

Commit

Permalink
chore: bump nats to 1.37.0 (#646)
Browse files Browse the repository at this point in the history
* execute `make generate`

* bump nats to 1.37.0

* fix linting problem

* add `nolint` comment

* add nolint comment
  • Loading branch information
grischperl authored Sep 20, 2024
1 parent d0f92c1 commit 7a84332
Show file tree
Hide file tree
Showing 7 changed files with 59 additions and 20 deletions.
2 changes: 1 addition & 1 deletion api/operator/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ require (
github.com/kyma-project/nats-manager v1.0.3-0.20231219150808-13159cfea47c
github.com/mitchellh/hashstructure/v2 v2.0.2
github.com/nats-io/nats-server/v2 v2.10.20
github.com/nats-io/nats.go v1.36.0
github.com/nats-io/nats.go v1.37.0
github.com/onsi/ginkgo v1.16.5
github.com/onsi/gomega v1.34.2
github.com/pkg/errors v0.9.1
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,8 @@ github.com/nats-io/nats-server/v2 v2.10.20 h1:CXDTYNHeBiAKBTAIP2gjpgbWap2GhATnTL
github.com/nats-io/nats-server/v2 v2.10.20/go.mod h1:hgcPnoUtMfxz1qVOvLZGurVypQ+Cg6GXVXjG53iHk+M=
github.com/nats-io/nats.go v1.36.0 h1:suEUPuWzTSse/XhESwqLxXGuj8vGRuPRoG7MoRN/qyU=
github.com/nats-io/nats.go v1.36.0/go.mod h1:Ubdu4Nh9exXdSz0RVWRFBbRfrbSxOYd26oF0wkWclB8=
github.com/nats-io/nats.go v1.37.0 h1:07rauXbVnnJvv1gfIyghFEo6lUcYRY0WXc3x7x0vUxE=
github.com/nats-io/nats.go v1.37.0/go.mod h1:Ubdu4Nh9exXdSz0RVWRFBbRfrbSxOYd26oF0wkWclB8=
github.com/nats-io/nkeys v0.4.7 h1:RwNJbbIdYCoClSDNY7QVKZlyb/wfT6ugvFCiKy6vDvI=
github.com/nats-io/nkeys v0.4.7/go.mod h1:kqXRgRDPlGy7nGaEDMuYzmiJCIAAWDK0IMBtDmGD0nc=
github.com/nats-io/nuid v1.0.1 h1:5iA8DT8V7q8WK2EScv2padNa/rTESc1KdnPw4TC2paw=
Expand Down
28 changes: 14 additions & 14 deletions internal/controller/operator/eventing/mocks/typed_controller.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 32 additions & 0 deletions pkg/backend/jetstream/mocks/JetStreamContext.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions pkg/backend/jetstream/stubs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ type jetStreamContextStub struct {
deleteConsumerErr error
}

func (j jetStreamContextStub) CleanupPublisher() {
// TODO implement me
panic("implement me")
}

func (j jetStreamContextStub) StreamNameBySubject(s string, opt ...nats.JSOpt) (string, error) {
// TODO implement me
panic("implement me")
Expand Down
8 changes: 4 additions & 4 deletions testing/test_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,10 @@ func GetStructuredMessageHeaders() http.Header {

func GetBinaryMessageHeaders() http.Header {
headers := make(http.Header)
headers.Add(CeIDHeader, EventID) //nolint:canonicalheader // used in testing.
headers.Add(CeTypeHeader, CloudEventType) //nolint:canonicalheader // used in testing.
headers.Add(CeSourceHeader, CloudEventSource) //nolint:canonicalheader // used in testing.
headers.Add(CeSpecVersionHeader, CloudEventSpecVersion) //nolint:canonicalheader // used in testing.
headers.Add(CeIDHeader, EventID) //nolint:canonicalheader,nolintlint // used in testing.
headers.Add(CeTypeHeader, CloudEventType) //nolint:canonicalheader,nolintlint // used in testing.
headers.Add(CeSourceHeader, CloudEventSource) //nolint:canonicalheader,nolintlint // used in testing.
headers.Add(CeSpecVersionHeader, CloudEventSpecVersion) //nolint:canonicalheader,nolintlint // used in testing.
return headers
}

Expand Down

0 comments on commit 7a84332

Please sign in to comment.