From 05d86498412540d3854448efbe19d2991586146b Mon Sep 17 00:00:00 2001 From: Alex Boten Date: Fri, 7 Jul 2023 14:31:43 -0700 Subject: [PATCH] add test case Signed-off-by: Alex Boten --- service/telemetry/config_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/service/telemetry/config_test.go b/service/telemetry/config_test.go index e48f0333dbd..d8f7e5665ba 100644 --- a/service/telemetry/config_test.go +++ b/service/telemetry/config_test.go @@ -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) {