Skip to content

Commit 9edd64e

Browse files
authored
[DOCS] Fix failing docs test (at least try) (#118934)
Fix failing docs test: * Unmute test * Replace hardcoded values with regex in snippet test
1 parent 51b4fff commit 9edd64e

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

docs/reference/indices/shard-stores.asciidoc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -198,10 +198,8 @@ The API returns the following response:
198198
// TESTRESPONSE[s/"attributes": \{[^}]*\}/"attributes": $body.$_path/]
199199
// TESTRESPONSE[s/"roles": \[[^]]*\]/"roles": $body.$_path/]
200200
// TESTRESPONSE[s/"8.10.0"/\$node_version/]
201-
// TESTRESPONSE[s/"min_index_version": 7000099/"min_index_version": $body.$_path/]
202-
// TESTRESPONSE[s/"max_index_version": 8100099/"max_index_version": $body.$_path/]
203-
204-
201+
// TESTRESPONSE[s/"min_index_version": [0-9]+/"min_index_version": $body.$_path/]
202+
// TESTRESPONSE[s/"max_index_version": [0-9]+/"max_index_version": $body.$_path/]
205203

206204
<1> The key is the corresponding shard id for the store information
207205
<2> A list of store information for all copies of the shard

muted-tests.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,6 @@ tests:
154154
- class: org.elasticsearch.xpack.ccr.rest.ShardChangesRestIT
155155
method: testShardChangesNoOperation
156156
issue: https://github.com/elastic/elasticsearch/issues/118800
157-
- class: org.elasticsearch.smoketest.DocsClientYamlTestSuiteIT
158-
method: test {yaml=reference/indices/shard-stores/line_150}
159-
issue: https://github.com/elastic/elasticsearch/issues/118896
160157
- class: org.elasticsearch.cluster.service.MasterServiceTests
161158
method: testThreadContext
162159
issue: https://github.com/elastic/elasticsearch/issues/118914

0 commit comments

Comments
 (0)