Skip to content

Commit

Permalink
fix: signozawsfirehose receiver: fix broken tests (#468)
Browse files Browse the repository at this point in the history
Co-authored-by: Vibhu Pandey <[email protected]>
  • Loading branch information
raj-k-singh and grandwizard28 authored Dec 2, 2024
1 parent ca74c28 commit bbbd3ba
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion receiver/signozawsfirehosereceiver/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ using a Load Balancer.
### endpoint:
The address:port to bind the listener to.
default: `localhost:4433`
default: `0.0.0.0:4433`

You can temporarily disable the `component.UseLocalHostAsDefaultHost` feature gate to change this to `0.0.0.0:4433`. This feature gate will be removed in a future release.

Expand Down
2 changes: 1 addition & 1 deletion receiver/signozawsfirehosereceiver/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func defaultLogsUnmarshalers(logger *zap.Logger) map[string]unmarshaler.LogsUnma
func createDefaultConfig() component.Config {
return &Config{
ServerConfig: confighttp.ServerConfig{
Endpoint: fmt.Sprintf("localhost:%d", defaultPort),
Endpoint: fmt.Sprintf("0.0.0.0:%d", defaultPort),
},
}
}
Expand Down

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

2 changes: 1 addition & 1 deletion receiver/signozawsfirehosereceiver/receiver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ func TestFirehoseRequest(t *testing.T) {
"WithInvalidBody": {
body: "{ test: ",
wantStatusCode: http.StatusBadRequest,
wantErr: errors.New("json: cannot unmarshal string into Go value of type awsfirehosereceiver.firehoseRequest"),
wantErr: errors.New("json: cannot unmarshal string into Go value of type signozawsfirehosereceiver.firehoseRequest"),
},
"WithNoRecords": {
body: testFirehoseRequest(testFirehoseRequestID, noRecords),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
awsfirehose:
signozawsfirehose:
endpoint: 0.0.0.0:4433
record_type: cwlogs
access_key: "some_access_key"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
awsfirehose:
signozawsfirehose:
endpoint: 0.0.0.0:4433
record_type: cwmetrics
access_key: "some_access_key"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
awsfirehose:
signozawsfirehose:
endpoint: 0.0.0.0:4433
record_type: invalid
record_type: invalid
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
awsfirehose:
signozawsfirehose:
endpoint: 0.0.0.0:4433
record_type: otlp_v1
access_key: "some_access_key"
Expand Down

0 comments on commit bbbd3ba

Please sign in to comment.