Skip to content

Commit 8028d5a

Browse files
authored
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
1 parent c864c6c commit 8028d5a

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

muted-tests.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -344,18 +344,12 @@ tests:
344344
- class: org.elasticsearch.xpack.ilm.actions.SearchableSnapshotActionIT
345345
method: testSearchableSnapshotsInHotPhasePinnedToHotNodes
346346
issue: https://github.com/elastic/elasticsearch/issues/125683
347-
- class: org.elasticsearch.backwards.MixedClusterClientYamlTestSuiteIT
348-
method: test {p0=cat.allocation/10_basic/Node forecasts}
349-
issue: https://github.com/elastic/elasticsearch/issues/125711
350347
- class: org.elasticsearch.xpack.migrate.action.ReindexDataStreamTransportActionIT
351348
method: testAlreadyUpToDateDataStream
352349
issue: https://github.com/elastic/elasticsearch/issues/125727
353350
- class: org.elasticsearch.index.engine.ThreadPoolMergeSchedulerStressTestIT
354351
method: testMergingFallsBehindAndThenCatchesUp
355352
issue: https://github.com/elastic/elasticsearch/issues/125744
356-
- class: org.elasticsearch.test.rest.ClientYamlTestSuiteIT
357-
method: test {yaml=cat.allocation/10_basic/Node forecasts}
358-
issue: https://github.com/elastic/elasticsearch/issues/125661
359353
- class: org.elasticsearch.xpack.esql.spatial.SpatialExtentAggregationNoLicenseIT
360354
method: testStExtentAggregationWithPoints
361355
issue: https://github.com/elastic/elasticsearch/issues/125735
@@ -380,9 +374,6 @@ tests:
380374
- class: org.elasticsearch.multiproject.test.CoreWithMultipleProjectsClientYamlTestSuiteIT
381375
method: test {yaml=search.vectors/41_knn_search_bbq_hnsw/Test index configured rescore vector score consistency}
382376
issue: https://github.com/elastic/elasticsearch/issues/125902
383-
- class: org.elasticsearch.smoketest.SmokeTestMultiNodeClientYamlTestSuiteIT
384-
method: test {yaml=cat.allocation/10_basic/Node forecasts}
385-
issue: https://github.com/elastic/elasticsearch/issues/125848
386377
- class: org.elasticsearch.xpack.test.rest.XPackRestIT
387378
method: test {p0=ml/start_data_frame_analytics/Test start given dest index is not empty}
388379
issue: https://github.com/elastic/elasticsearch/issues/125909

rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/cat.allocation/10_basic.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@
295295
( [-\w.]+ \s+
296296
[-\w.]+ \s+
297297
[-\w.]+ \s+
298-
[\w]+
298+
[-\w.]+
299299
\n
300300
)+
301301
$/

0 commit comments

Comments
 (0)