Skip to content

Commit

Permalink
Fix the tests after updating the example metadata file
Browse files Browse the repository at this point in the history
  • Loading branch information
DewaldDeJager committed Jun 5, 2023
1 parent 5e4413f commit 17da70f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
4 changes: 3 additions & 1 deletion cmd/mdatagen/internal/metadata/generated_status.go

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

16 changes: 10 additions & 6 deletions cmd/mdatagen/loader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,16 @@ func Test_loadMetadata(t *testing.T) {
want: metadata{
Type: "test",
SemConvVersion: "1.9.0",
Status: &Status{
Class: "receiver",
Stability: map[string][]string{
"development": {"logs"},
"beta": {"traces"},
"stable": {"metrics"},
},
Distributions: []string{"contrib"},
Warnings: []string{"Any additional information that should be brought to the consumer's attention"},
},
ResourceAttributes: map[attributeName]attribute{
"string.resource.attr": {
Description: "Resource attribute with any string value.",
Expand Down Expand Up @@ -146,12 +156,6 @@ func Test_loadMetadata(t *testing.T) {
},
},
ScopeName: "otelcol",
Status: &Status{
Class: "receiver",
Stability: map[string][]string{
"development": {"metrics"},
},
},
},
},
{
Expand Down

0 comments on commit 17da70f

Please sign in to comment.