Skip to content

Commit ee80f76

Browse files
Disable queryable built-in feature in docs YAML tests (#124684) (#124817)
The .security index is created asynchronously on a cluster startup. This affects some of the docs YAML tests in a way that they need to account for the existence of the .security index or wait for the index to be created and green. This PR disables the feature for docs YAML tests. Disabling the feature in docs YAML tests will solve the flakiness without affecting the coverage. Resolves #122343 Resolves #121748 Resolves #121611 Resolves #121345 Resolves #121338 Resolves #121337 Resolves #121288 Resolves #121287 Resolves #121867 Resolves #122335 Resolves #122681 Resolves #121976 Resolves #123094 Resolves #123192 Resolves #122983 Resolves #124671 Resolves #124103 (cherry picked from commit cac356a) # Conflicts: # muted-tests.yml
1 parent a57112e commit ee80f76

File tree

2 files changed

+2
-13
lines changed

2 files changed

+2
-13
lines changed

docs/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ testClusters.matching { it.name == "yamlRestTest"}.configureEach {
119119

120120
// TODO: remove this once cname is prepended to transport.publish_address by default in 8.0
121121
systemProperty 'es.transport.cname_in_publish_address', 'true'
122+
systemProperty 'es.queryable_built_in_roles_enabled', 'false'
122123

123124

124125
requiresFeature 'es.index_mode_feature_flag_registered', Version.fromString("8.0.0")

muted-tests.yml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -402,21 +402,12 @@ tests:
402402
issue: https://github.com/elastic/elasticsearch/issues/121474
403403
- class: org.elasticsearch.xpack.application.CohereServiceUpgradeIT
404404
issue: https://github.com/elastic/elasticsearch/issues/121537
405-
- class: org.elasticsearch.smoketest.DocsClientYamlTestSuiteIT
406-
method: test {yaml=reference/snapshot-restore/apis/get-snapshot-api/line_488}
407-
issue: https://github.com/elastic/elasticsearch/issues/121611
408-
- class: org.elasticsearch.smoketest.DocsClientYamlTestSuiteIT
409-
method: test {yaml=reference/rest-api/common-options/line_102}
410-
issue: https://github.com/elastic/elasticsearch/issues/121748
411405
- class: org.elasticsearch.xpack.test.rest.XPackRestIT
412406
method: test {p0=transform/*}
413407
issue: https://github.com/elastic/elasticsearch/issues/120816
414408
- class: org.elasticsearch.xpack.test.rest.XPackRestIT
415409
method: test {p0=ml/*}
416410
issue: https://github.com/elastic/elasticsearch/issues/120816
417-
- class: org.elasticsearch.smoketest.DocsClientYamlTestSuiteIT
418-
method: test {yaml=reference/cat/allocation/cat-allocation-example}
419-
issue: https://github.com/elastic/elasticsearch/issues/121976
420411
- class: org.elasticsearch.xpack.security.authc.ldap.GroupMappingIT
421412
issue: https://github.com/elastic/elasticsearch/issues/121291
422413
- class: org.elasticsearch.xpack.esql.qa.multi_node.EsqlSpecIT
@@ -441,9 +432,6 @@ tests:
441432
- class: org.elasticsearch.xpack.test.rest.XPackRestIT
442433
method: test {p0=snapshot/10_basic/Create a source only snapshot and then restore it}
443434
issue: https://github.com/elastic/elasticsearch/issues/122755
444-
- class: org.elasticsearch.smoketest.DocsClientYamlTestSuiteIT
445-
method: test {yaml=reference/troubleshooting/troubleshooting-unbalanced-cluster/line_24}
446-
issue: https://github.com/elastic/elasticsearch/issues/122983
447435
- class: org.elasticsearch.xpack.test.rest.XPackRestIT
448436
method: test {p0=data_stream/80_resolve_index_data_streams/Resolve index with hidden and closed indices}
449437
issue: https://github.com/elastic/elasticsearch/issues/123081
@@ -487,4 +475,4 @@ tests:
487475
issue: https://github.com/elastic/elasticsearch/issues/124420
488476
- class: org.elasticsearch.xpack.core.common.notifications.AbstractAuditorTests
489477
method: testRecreateTemplateWhenDeleted
490-
issue: https://github.com/elastic/elasticsearch/issues/123232
478+
issue: https://github.com/elastic/elasticsearch/issues/123232

0 commit comments

Comments
 (0)