Browse Source

Fix typos in tests (#15312)

Signed-off-by: Arthur Silva Sens <arthursens2005@gmail.com>
pull/15316/head
Arthur Silva Sens 3 weeks ago committed by GitHub
parent
commit
034d2b24bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      storage/remote/otlptranslator/prometheus/normalize_label_test.go
  2. 2
      storage/remote/otlptranslator/prometheus/normalize_name_test.go

2
storage/remote/otlptranslator/prometheus/normalize_label_test.go

@ -29,7 +29,7 @@ func TestNormalizeLabel(t *testing.T) {
{"label:with:colons", "label_with_colons"}, // Without UTF-8 support, colons are only allowed in metric names
{"LabelWithCapitalLetters", "LabelWithCapitalLetters"},
{"label!with&special$chars)", "label_with_special_chars_"},
{"label_with_foreign_characteres_字符", "label_with_foreign_characteres___"},
{"label_with_foreign_characters_字符", "label_with_foreign_characters___"},
{"label.with.dots", "label_with_dots"},
{"123label", "key_123label"},
{"_label_starting_with_underscore", "key_label_starting_with_underscore"},

2
storage/remote/otlptranslator/prometheus/normalize_name_test.go

@ -202,5 +202,5 @@ func TestBuildCompliantNameWithoutSuffixes(t *testing.T) {
require.Equal(t, ":foo::bar", BuildCompliantName(createCounter(":foo::bar", ""), "", false))
require.Equal(t, "foo_bar", BuildCompliantName(createGauge("foo.bar", "1"), "", false))
require.Equal(t, "system_io", BuildCompliantName(createCounter("system.io", "foo/bar"), "", false))
require.Equal(t, "metric_with___foreign_characteres", BuildCompliantName(createCounter("metric_with_字符_foreign_characteres", ""), "", false))
require.Equal(t, "metric_with___foreign_characters", BuildCompliantName(createCounter("metric_with_字符_foreign_characters", ""), "", false))
}

Loading…
Cancel
Save