mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-26 05:01:23 -08:00
Merge pull request #8881 from colega/single-literal-regexp-value-querier-testcase
Single literal regexp value test case for querier
This commit is contained in:
commit
6eaff341fb
|
@ -1513,6 +1513,13 @@ func TestFindSetMatches(t *testing.T) {
|
|||
pattern string
|
||||
exp []string
|
||||
}{
|
||||
// Single value, coming from a `bar=~"foo"` selector.
|
||||
{
|
||||
pattern: "^(?:foo)$",
|
||||
exp: []string{
|
||||
"foo",
|
||||
},
|
||||
},
|
||||
// Simple sets.
|
||||
{
|
||||
pattern: "^(?:foo|bar|baz)$",
|
||||
|
|
Loading…
Reference in a new issue