diff --git a/mapper_test.go b/mapper_test.go index 560dbb1..149dcb3 100644 --- a/mapper_test.go +++ b/mapper_test.go @@ -312,6 +312,32 @@ mappings: config: ``, mappings: map[string]map[string]string{}, }, + // Config with good timer type. + { + config: `--- +mappings: +- match: test.*.* + timer_type: summary + labels: + name: "foo" + `, + mappings: map[string]map[string]string{ + "test.*.*": map[string]string{ + "name": "foo", + }, + }, + }, + // Config with bad timer type. + { + config: `--- +mappings: +- match: test.*.* + timer_type: wrong + labels: + name: "foo" + `, + configBad: true, + }, } mapper := metricMapper{}