@@ -42,7 +42,6 @@ def test_parser_go_server_metrics_unsupported_type(tmp_path, capsys):
4242 "boolean" ,
4343 "labeled_boolean" ,
4444 "labeled_string" ,
45- "string_list" ,
4645 "timespan" ,
4746 "uuid" ,
4847 "url" ,
@@ -102,7 +101,7 @@ def test_parser_go_server_events_and_custom_ping(tmp_path):
102101 assert content == compare
103102
104103
105- def test_parser_go_server_custon_ping_only (tmp_path ):
104+ def test_parser_go_server_custom_ping_only (tmp_path ):
106105 """Test that parser works for definitions that only use custom pings"""
107106 translate .translate (
108107 [
@@ -170,10 +169,11 @@ def test_run_logging_events_ping(tmp_path):
170169 IpAddress: "127.0.0.1",
171170 },
172171 glean.EventsPing{
173- MetricName: "string value",
174- MetricRequestBool: true,
175- MetricRequestCount: 10,
176- MetricRequestDatetime: time.Now(),
172+ MetricName: "string value",
173+ MetricRequestBool: true,
174+ MetricRequestCount: 10,
175+ MetricRequestDatetime: time.Now(),
176+ MetricRequestStringList: []string{"list", "of", "strings"},
177177 Event: glean.BackendTestEventEvent{
178178 EventFieldString: "event extra string value",
179179 EventFieldQuantity: 100,
@@ -227,10 +227,11 @@ def test_run_logging_custom_ping_without_event(tmp_path):
227227 IpAddress: "127.0.0.1",
228228 },
229229 glean.ServerTelemetryScenarioOnePing{
230- MetricName: "string value",
231- MetricRequestBool: true,
232- MetricRequestCount: 20,
233- MetricRequestDatetime: time.Now(),
230+ MetricName: "string value",
231+ MetricRequestBool: true,
232+ MetricRequestCount: 20,
233+ MetricRequestDatetime: time.Now(),
234+ MetricRequestStringList: []string{"list", "of", "strings"},
234235 },
235236 )
236237 """
@@ -285,10 +286,11 @@ def test_run_logging_discard_writer(tmp_path):
285286 IpAddress: "127.0.0.1",
286287 },
287288 glean.ServerTelemetryScenarioOnePing{
288- MetricName: "string value",
289- MetricRequestBool: true,
290- MetricRequestCount: 20,
291- MetricRequestDatetime: time.Now(),
289+ MetricName: "string value",
290+ MetricRequestBool: true,
291+ MetricRequestCount: 20,
292+ MetricRequestDatetime: time.Now(),
293+ MetricRequestStringList: []string{"list", "of", "strings"},
292294 },
293295 )
294296 if err != nil {
@@ -362,10 +364,11 @@ def test_run_logging_custom_ping_with_event(tmp_path):
362364 IpAddress: "127.0.0.1",
363365 },
364366 glean.ServerTelemetryScenarioOnePing{
365- MetricName: "string value",
366- MetricRequestBool: true,
367- MetricRequestCount: 20,
368- MetricRequestDatetime: time.Now(),
367+ MetricName: "string value",
368+ MetricRequestBool: true,
369+ MetricRequestCount: 20,
370+ MetricRequestDatetime: time.Now(),
371+ MetricRequestStringList: []string{"list", "of", "strings"},
369372 Event: glean.BackendSpecialEventEvent{
370373 EventFieldString: "exta value string",
371374 EventFieldQuantity: 30,
0 commit comments