build.gradle 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. apply plugin: 'elasticsearch.internal-yaml-rest-test'
  2. import org.elasticsearch.gradle.util.GradleUtils
  3. dependencies {
  4. testImplementation project(':x-pack:qa')
  5. testImplementation project(':x-pack:qa:multi-project:yaml-test-framework')
  6. clusterModules project(':modules:mapper-extras')
  7. clusterModules project(':modules:rank-eval')
  8. clusterModules project(':modules:ingest-common')
  9. clusterModules project(':modules:reindex')
  10. clusterModules project(':modules:analysis-common')
  11. clusterModules project(':modules:health-shards-availability')
  12. clusterModules project(':modules:data-streams')
  13. clusterModules project(':modules:multi-project')
  14. clusterModules project(xpackModule('stack'))
  15. clusterModules project(xpackModule('ilm'))
  16. clusterModules project(xpackModule('mapper-constant-keyword'))
  17. clusterModules project(xpackModule('wildcard'))
  18. }
  19. // let the yamlRestTests see the classpath of test
  20. GradleUtils.extendSourceSet(project, "test", "yamlRestTest", tasks.named("yamlRestTest"))
  21. restResources {
  22. restTests {
  23. includeCore '*'
  24. }
  25. }
  26. tasks.named("yamlRestTest").configure {
  27. ArrayList<String> blacklist = [
  28. /* These tests don't work on multi-project yet - we need to go through each of them and make them work */
  29. '^bulk/*/*',
  30. '^cat.aliases/*/*',
  31. '^cat.fielddata/10_basic/*',
  32. '^cat.indices/*/*',
  33. '^cat.recovery/*/*',
  34. '^cat.segments/*/*',
  35. '^cat.snapshots/*/*',
  36. '^cluster.allocation_explain/10_basic/Cluster shard allocation explanation test with a closed index', // closed index
  37. '^cluster.desired_balance/10_basic/*',
  38. '^cluster.desired_nodes/*/*',
  39. '^cluster.health/10_basic/cluster health with closed index', // closed index
  40. '^cluster.health/30_indices_options/cluster health with expand_wildcards', // closed index
  41. '^cluster.prevalidate_node_removal/*/*',
  42. '^cluster.state/20_filtering/*',
  43. '^cluster.state/30_expand_wildcards/*',
  44. '^cluster.stats/*/*',
  45. '^explain/*/*',
  46. '^field_caps/*/*',
  47. '^health/*/*',
  48. '^indices.analyze/*/*',
  49. '^indices.blocks/*/*',
  50. '^indices.clear_cache/*/*',
  51. '^indices.clone/*/*',
  52. '^indices.delete_alias/*/*',
  53. '^indices.exists/20_read_only_index/*',
  54. '^indices.exists_alias/*/*',
  55. '^indices.exists_template/*/*',
  56. '^indices.forcemerge/*/*',
  57. '^indices.get/*/*',
  58. '^indices.get_alias/10_basic/Get alias against closed indices',
  59. '^indices.get_field_mapping/*/*',
  60. '^indices.get_mapping/40_aliases/Getting mapping for aliases should return the real index as key', // aliases do not work
  61. '^indices.get_mapping/50_wildcard_expansion/*', // index close does not work
  62. '^indices.get_settings/20_aliases/Getting settings for aliases should return the real index as key', // aliases do not work
  63. '^indices.open/*/*',
  64. '^indices.open/*/*/*',
  65. '^indices.put_alias/*/*',
  66. // This test is blocked on the ability to add ingest pipelines in multiple projects.
  67. '^indices.put_index_template/15_composition/Using deprecated component templates and pipelines in index template',
  68. '^indices.put_settings/*/*',
  69. '^indices.recovery/*/*',
  70. '^indices.resolve_cluster/*/*',
  71. '^indices.resolve_cluster/*/*/*',
  72. '^indices.resolve_index/*/*',
  73. '^indices.rollover/*/*',
  74. '^indices.segments/*/*',
  75. '^indices.shard_stores/*/*',
  76. '^indices.shrink/*/*',
  77. '^indices.simulate_index_template/*/*',
  78. '^indices.simulate_template/*/*',
  79. '^indices.sort/*/*',
  80. '^indices.split/*/*',
  81. '^indices.stats/*/*',
  82. '^indices.update_aliases/*/*',
  83. '^logsdb/*/*',
  84. '^mget/*/*',
  85. '^mget/*/*/*',
  86. '^migration/*/*',
  87. '^mlt/*/*',
  88. '^msearch/*/*',
  89. '^mtermvectors/*/*',
  90. '^nodes.info/*/*',
  91. '^nodes.reload_secure_settings/*/*',
  92. '^nodes.stats/*/*',
  93. '^range/*/*',
  94. '^scripts/*/*',
  95. '^scroll/*/*',
  96. '^search/10_source_filtering/*',
  97. '^search/20_default_values/*',
  98. '^search/30_limits/*',
  99. '^search/40_indices_boost/*',
  100. '^search/40_indices_boost/*/*',
  101. '^search/60_query_string/*',
  102. '^search/70_response_filtering/*',
  103. '^search/80_indices_options/Closed index',
  104. '^search/90_search_after/Format sort values',
  105. '^search/90_search_after/search with search_after parameter',
  106. '^search/100_stored_fields/Stored fields',
  107. '^search/110_field_collapsing/*',
  108. '^search/120_batch_reduce_size/batched_reduce_size 2 with 5 shards',
  109. '^search/140_pre_filter_search_shards/*',
  110. '^search/150_rewrite_on_coordinator/*',
  111. '^search/160_exists_query*/*',
  112. '^search/161_exists_query_within_nested_query/*',
  113. '^search/190_index_prefix_search/*',
  114. '^search/200_ignore_malformed/*',
  115. '^search/200_index_phrase_search/*',
  116. '^search/220_total_hits_object/*',
  117. '^search/240_date_nanos/*',
  118. '^search/300_sequence_numbers/*',
  119. '^search/310_match_bool_prefix/*',
  120. '^search/330_fetch_fields/Test basic field retrieval',
  121. '^search/330_fetch_fields/Test date formatting',
  122. '^search/330_fetch_fields/Test disable source',
  123. '^search/330_fetch_fields/Test ignore malformed',
  124. '^search/330_fetch_fields/Test search rewrite',
  125. '^search/330_fetch_fields/error includes field name',
  126. '^search/350_point_in_time/*',
  127. '^search/380_sort_segments_on_timestamp/Test that index segments are NOT sorted on timestamp field when @timestamp field is dynamically added',
  128. '^search/390_doc_values_search/*',
  129. '^search/390_lookup_fields/*',
  130. '^search/400_synthetic_source/_doc_count',
  131. '^search/410_named_queries/*',
  132. '^search/520_fetch_fields/fetch fields with none stored_fields',
  133. '^search/issue4895/Test with _local preference placed in query body - should fail',
  134. '^search.highlight/*/*',
  135. '^search.inner_hits/*/*',
  136. '^search.retrievers/*/*',
  137. '^search.vectors/*/*',
  138. '^simulate.ingest/*/*',
  139. '^snapshot.clone/*/*',
  140. '^snapshot.create/*/*',
  141. '^snapshot.delete/*/*',
  142. '^snapshot.get/*/*',
  143. '^snapshot.get_repository/*/*',
  144. '^snapshot.restore/*/*',
  145. '^snapshot.status/*/*',
  146. '^suggest/*/*',
  147. '^synonyms/*/*',
  148. '^termvectors/*/*',
  149. '^tsdb/*/*'
  150. ];
  151. if (buildParams.isSnapshotBuild() == false) {
  152. blacklist += [];
  153. }
  154. systemProperty 'tests.rest.blacklist', blacklist.join(',')
  155. }