diff --git a/lib/promrelabel/config_test.go b/lib/promrelabel/config_test.go index 24bd4f731..7cbbf7484 100644 --- a/lib/promrelabel/config_test.go +++ b/lib/promrelabel/config_test.go @@ -55,7 +55,7 @@ func TestRelabelConfigMarshalUnmarshal(t *testing.T) { - regex: - 'fo.+' - '.*ba[r-z]a' -`, "- regex:\n - fo.+\n - .*ba[r-z]a\n") +`, "- regex: fo.+|.*ba[r-z]a\n") f(`- regex: foo|bar`, "- regex:\n - foo\n - bar\n") f(`- regex: True`, `- regex: "true"`+"\n") f(`- regex: true`, `- regex: "true"`+"\n")