Skip to content

Commit

Permalink
[chore] add generated lifecycle tests (open-telemetry#31012)
Browse files Browse the repository at this point in the history
Add the lifecycle config to metadata.yaml and generate lifecycle tests.

Related to open-telemetry#27850
  • Loading branch information
adrielp authored Feb 2, 2024
1 parent 3e4b3a6 commit 29ecc62
Show file tree
Hide file tree
Showing 4 changed files with 83 additions and 7 deletions.
73 changes: 73 additions & 0 deletions receiver/gitproviderreceiver/generated_component_test.go

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

4 changes: 2 additions & 2 deletions receiver/gitproviderreceiver/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ require (
github.com/spf13/pflag v1.0.5 // indirect
github.com/tklauser/go-sysconf v0.3.12 // indirect
github.com/tklauser/numcpus v0.6.1 // indirect
github.com/vektah/gqlparser/v2 v2.5.10 // indirect
github.com/vektah/gqlparser/v2 v2.5.11 // indirect
github.com/yusufpapurcu/wmi v1.2.3 // indirect
go.opencensus.io v0.24.0 // indirect
go.opentelemetry.io/collector v0.93.1-0.20240130182548-89388addcc7f // indirect
Expand Down Expand Up @@ -103,7 +103,7 @@ require (
golang.org/x/text v0.14.0 // indirect
gonum.org/v1/gonum v0.14.0 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20231106174013-bbf56f31fb17 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20231106174013-bbf56f31fb17 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240125205218-1f4bbc51befe // indirect
google.golang.org/grpc v1.61.0 // indirect
google.golang.org/protobuf v1.32.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
Expand Down
10 changes: 5 additions & 5 deletions receiver/gitproviderreceiver/go.sum

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

3 changes: 3 additions & 0 deletions receiver/gitproviderreceiver/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,6 @@ metrics:
gauge:
value_type: int
attributes: [repository.name]

tests:
config:

0 comments on commit 29ecc62

Please sign in to comment.