mirror of
https://github.com/prometheus/prometheus.git
synced 2025-02-06 10:24:02 +00:00
Update the test to invalid utf-8
"invalid-label-name" is valid in utf-8 mode Signed-off-by: Joshua Hesketh <josh@nitrotech.org>
This commit is contained in:
parent
e4037b3ec3
commit
5be3197701
2
promql/promqltest/testdata/functions.test
vendored
2
promql/promqltest/testdata/functions.test
vendored
@ -466,7 +466,7 @@ eval instant at 0m label_replace(testmetric, "dst", "", "dst", ".*")
|
||||
eval_fail instant at 0m label_replace(testmetric, "dst", "value-$1", "src", "(.*")
|
||||
|
||||
# label_replace fails when the destination label name is not a valid Prometheus label name.
|
||||
eval_fail instant at 0m label_replace(testmetric, "invalid-label-name", "", "src", "(.*)")
|
||||
eval_fail instant at 0m label_replace(testmetric, "\xff", "", "src", "(.*)")
|
||||
|
||||
# label_replace fails when there would be duplicated identical output label sets.
|
||||
eval_fail instant at 0m label_replace(testmetric, "src", "", "", "")
|
||||
|
Loading…
x
Reference in New Issue
Block a user