From 86a2ba8ce3e3cd6cc34598bbee13a290ca10a6ac Mon Sep 17 00:00:00 2001 From: Niels Bauman <33722607+nielsbauman@users.noreply.github.com> Date: Tue, 1 Apr 2025 11:25:13 +0100 Subject: [PATCH] Fix cat allocation YAML test (#126003) This test failed when the `disk.indices.forecast` value was a decimal number. We adjust the regex to allow decimal values and for consistency we also allow negative values. Fixes #125711 Fixes #125848 Fixes #125661 (cherry picked from commit 8028d5adde9ce9c4554b363ddffdf19772086867) # Conflicts: # muted-tests.yml --- .../resources/rest-api-spec/test/cat.allocation/10_basic.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/cat.allocation/10_basic.yml b/rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/cat.allocation/10_basic.yml index 0d660cbb6b048..6e7d14e4dc7aa 100644 --- a/rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/cat.allocation/10_basic.yml +++ b/rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/cat.allocation/10_basic.yml @@ -295,7 +295,7 @@ ( [-\w.]+ \s+ [-\w.]+ \s+ [-\w.]+ \s+ - [\w]+ + [-\w.]+ \n )+ $/