瀏覽代碼

Disable queryable built-in feature in docs YAML tests (#124684)

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 https://github.com/elastic/elasticsearch/issues/122343 Resolves
https://github.com/elastic/elasticsearch/issues/121748 Resolves
https://github.com/elastic/elasticsearch/issues/121611 Resolves
https://github.com/elastic/elasticsearch/issues/121345 Resolves
https://github.com/elastic/elasticsearch/issues/121338 Resolves
https://github.com/elastic/elasticsearch/issues/121337 Resolves
https://github.com/elastic/elasticsearch/issues/121288 Resolves
https://github.com/elastic/elasticsearch/issues/121287 Resolves
https://github.com/elastic/elasticsearch/issues/121867 Resolves
https://github.com/elastic/elasticsearch/issues/122335 Resolves
https://github.com/elastic/elasticsearch/issues/122681 Resolves
https://github.com/elastic/elasticsearch/issues/121976 Resolves
https://github.com/elastic/elasticsearch/issues/123094 Resolves
https://github.com/elastic/elasticsearch/issues/123192 Resolves
https://github.com/elastic/elasticsearch/issues/122983 Resolves
https://github.com/elastic/elasticsearch/issues/124671 Resolves
https://github.com/elastic/elasticsearch/issues/124103
Slobodan Adamović 7 月之前
父節點
當前提交
cac356ae64
共有 2 個文件被更改,包括 2 次插入40 次删除
  1. 1 0
      docs/build.gradle
  2. 1 40
      muted-tests.yml

+ 1 - 0
docs/build.gradle

@@ -121,6 +121,7 @@ testClusters.matching { it.name == "yamlRestTest"}.configureEach {
 
   // TODO: remove this once cname is prepended to transport.publish_address by default in 8.0
   systemProperty 'es.transport.cname_in_publish_address', 'true'
+  systemProperty 'es.queryable_built_in_roles_enabled', 'false'
 
 
   requiresFeature 'es.index_mode_feature_flag_registered', Version.fromString("8.0.0")

+ 1 - 40
muted-tests.yml

@@ -214,29 +214,11 @@ tests:
   issue: https://github.com/elastic/elasticsearch/issues/120816
 - class: org.elasticsearch.xpack.security.authc.ldap.ActiveDirectorySessionFactoryTests
   issue: https://github.com/elastic/elasticsearch/issues/121285
-- class: org.elasticsearch.smoketest.DocsClientYamlTestSuiteIT
-  method: test {yaml=reference/snapshot-restore/apis/get-snapshot-api/line_357}
-  issue: https://github.com/elastic/elasticsearch/issues/121287
-- class: org.elasticsearch.smoketest.DocsClientYamlTestSuiteIT
-  method: test {yaml=reference/index-modules/slowlog/line_102}
-  issue: https://github.com/elastic/elasticsearch/issues/121288
 - class: org.elasticsearch.env.NodeEnvironmentTests
   method: testGetBestDowngradeVersion
   issue: https://github.com/elastic/elasticsearch/issues/121316
-- class: org.elasticsearch.smoketest.DocsClientYamlTestSuiteIT
-  method: test {yaml=reference/rest-api/security/invalidate-tokens/line_194}
-  issue: https://github.com/elastic/elasticsearch/issues/121337
-- class: org.elasticsearch.smoketest.DocsClientYamlTestSuiteIT
-  method: test {yaml=reference/rest-api/common-options/line_125}
-  issue: https://github.com/elastic/elasticsearch/issues/121338
-- class: org.elasticsearch.smoketest.DocsClientYamlTestSuiteIT
-  method: test {yaml=reference/snapshot-restore/apis/get-snapshot-api/line_751}
-  issue: https://github.com/elastic/elasticsearch/issues/121345
 - class: org.elasticsearch.test.rest.yaml.CcsCommonYamlTestSuiteIT
   issue: https://github.com/elastic/elasticsearch/issues/121407
-- class: org.elasticsearch.smoketest.DocsClientYamlTestSuiteIT
-  method: test {yaml=reference/cat/health/cat-health-no-timestamp-example}
-  issue: https://github.com/elastic/elasticsearch/issues/121867
 - class: org.elasticsearch.analysis.common.CommonAnalysisClientYamlTestSuiteIT
   method: test {yaml=analysis-common/40_token_filters/stemmer_override file access}
   issue: https://github.com/elastic/elasticsearch/issues/121625
@@ -251,36 +233,15 @@ tests:
 - class: org.elasticsearch.blocks.SimpleBlocksIT
   method: testConcurrentAddBlock
   issue: https://github.com/elastic/elasticsearch/issues/122324
-- class: org.elasticsearch.smoketest.DocsClientYamlTestSuiteIT
-  method: test {yaml=reference/cat/health/cat-health-example}
-  issue: https://github.com/elastic/elasticsearch/issues/122335
-- class: org.elasticsearch.smoketest.DocsClientYamlTestSuiteIT
-  method: test {yaml=reference/alias/line_260}
-  issue: https://github.com/elastic/elasticsearch/issues/122343
-- class: org.elasticsearch.smoketest.DocsClientYamlTestSuiteIT
-  method: test {yaml=reference/snapshot-restore/apis/get-snapshot-api/line_488}
-  issue: https://github.com/elastic/elasticsearch/issues/121611
-- class: org.elasticsearch.smoketest.DocsClientYamlTestSuiteIT
-  method: test {yaml=reference/snapshot-restore/apis/get-snapshot-api/line_408}
-  issue: https://github.com/elastic/elasticsearch/issues/122681
 - class: org.elasticsearch.search.basic.SearchWithRandomDisconnectsIT
   method: testSearchWithRandomDisconnects
   issue: https://github.com/elastic/elasticsearch/issues/122707
-- class: org.elasticsearch.smoketest.DocsClientYamlTestSuiteIT
-  method: test {yaml=reference/cat/allocation/cat-allocation-example}
-  issue: https://github.com/elastic/elasticsearch/issues/121976
 - class: org.elasticsearch.xpack.esql.heap_attack.HeapAttackIT
   method: testEnrichExplosionManyMatches
   issue: https://github.com/elastic/elasticsearch/issues/122913
-- class: org.elasticsearch.smoketest.DocsClientYamlTestSuiteIT
-  method: test {yaml=reference/troubleshooting/common-issues/disk-usage-exceeded/line_65}
-  issue: https://github.com/elastic/elasticsearch/issues/123094
 - class: org.elasticsearch.xpack.esql.action.CrossClusterAsyncQueryStopIT
   method: testStopQueryLocal
   issue: https://github.com/elastic/elasticsearch/issues/121672
-- class: org.elasticsearch.smoketest.DocsClientYamlTestSuiteIT
-  method: test {yaml=reference/snapshot-restore/restore-snapshot/line_408}
-  issue: https://github.com/elastic/elasticsearch/issues/123192
 - class: org.elasticsearch.xpack.ilm.actions.SearchableSnapshotActionIT
   method: testRestoredIndexManagedByLocalPolicySkipsIllegalActions
   issue: https://github.com/elastic/elasticsearch/issues/123202
@@ -413,4 +374,4 @@ tests:
 #    issue: "https://github.com/elastic/elasticsearch/..."
 #  - class: "org.elasticsearch.xpack.esql.**"
 #    method: "test {union_types.MultiIndexIpStringStatsInline *}"
-#    issue: "https://github.com/elastic/elasticsearch/..."
+#    issue: "https://github.com/elastic/elasticsearch/..."