Skip to content

Commit

Permalink
add test case
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Boten <aboten@lightstep.com>
  • Loading branch information
Alex Boten committed Jul 12, 2023
1 parent b30d792 commit 05d8649
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions service/telemetry/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,14 @@ func TestUnmarshalMetricReaders(t *testing.T) {
},
}}),
},
{
name: "valid pull reader type with name, valid prometheus exporter",
cfg: confmap.NewFromStringMap(map[string]any{"pull/prometheus1": PullMetricReader{
Exporter: MetricExporter{
Prometheus: &Prometheus{},
},
}}),
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
Expand Down

0 comments on commit 05d8649

Please sign in to comment.