Skip to content

Commit

Permalink
test validation with dots.
Browse files Browse the repository at this point in the history
Signed-off-by: Miroslav Šedivý <[email protected]>
  • Loading branch information
m1k1o committed Feb 11, 2025
1 parent cc17dab commit f220878
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions model/labels_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,11 @@ func TestLabelNameIsValid(t *testing.T) {
legacyValid: false,
utf8Valid: false,
},
{
ln: "dot.in.name",
legacyValid: false,
utf8Valid: true,
},
}

for _, s := range scenarios {
Expand Down
5 changes: 5 additions & 0 deletions model/metric_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,11 @@ func TestMetricNameIsLegacyValid(t *testing.T) {
legacyValid: false,
utf8Valid: false,
},
{
mn: "dot.in.name",
legacyValid: false,
utf8Valid: true,
},
}

for _, s := range scenarios {
Expand Down

0 comments on commit f220878

Please sign in to comment.