Skip to content

Commit c130776

Browse files
committed
feat: add config defaults break change test
1 parent 6dace4f commit c130776

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

internal/component/otelcol/receiver/awss3/awss3_test.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,22 @@ import (
1010
"github.com/grafana/alloy/syntax"
1111
)
1212

13+
func TestArguments_Defaults(t *testing.T) {
14+
// Test to detect if upstream defaults are changed or any other breaking changes introduced.
15+
expect := awss3.Arguments{
16+
S3Downloader: awss3.S3DownloaderConfig{
17+
Region: "us-east-1",
18+
S3Partition: awss3receiver.S3PartitionMinute,
19+
EndpointPartitionID: "aws",
20+
},
21+
}
22+
23+
var args awss3.Arguments
24+
args.SetToDefault()
25+
26+
require.Equal(t, expect, args)
27+
}
28+
1329
func TestArguments_UnmarshalAlloy(t *testing.T) {
1430
cases := []struct {
1531
name string

0 commit comments

Comments
 (0)