build.gradle 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. apply plugin: 'elasticsearch.internal-yaml-rest-test'
  2. import org.elasticsearch.gradle.util.GradleUtils
  3. dependencies {
  4. testImplementation project(xpackModule('core'))
  5. testImplementation(testArtifact(project(xpackModule('core'))))
  6. testImplementation project(':test:yaml-rest-runner')
  7. testImplementation project(':x-pack:qa:multi-project:yaml-test-framework')
  8. testImplementation(testArtifact(project(":x-pack:plugin:security:qa:service-account"), "javaRestTest"))
  9. restXpackTestConfig project(path: ':x-pack:plugin:ilm:qa:rest', configuration: "basicRestSpecs")
  10. }
  11. // let the yamlRestTests see the classpath of test
  12. GradleUtils.extendSourceSet(project, "test", "yamlRestTest", tasks.named("yamlRestTest"))
  13. restResources {
  14. restTests {
  15. includeXpack '*'
  16. }
  17. }
  18. tasks.named("yamlRestTest").configure {
  19. usesDefaultDistribution()
  20. ArrayList<String> blacklist = [
  21. /* These tests don't work on multi-project yet - we need to go through each of them and make them work */
  22. '^analytics/boxplot/*',
  23. '^analytics/histogram/*',
  24. '^analytics/moving_percentiles/*',
  25. '^analytics/top_metrics/*',
  26. '^analytics/usage/*',
  27. '^async_search/10_basic/*',
  28. '^async_search/20-with-poin-in-time/*',
  29. '^constant_keyword/10_basic/*',
  30. '^data_streams/10_data_stream_resolvability/*',
  31. '^deprecation/10_basic/*',
  32. '^dlm/10_usage/*',
  33. '^enrich/10_basic/*',
  34. '^enrich/20_standard_index/*',
  35. '^enrich/30_tsdb_index/*',
  36. '^enrich/40_synthetic_source/*',
  37. '^enrich/50_data_stream/*',
  38. '^esql/100_bug_fix/*',
  39. '^esql/10_basic/*',
  40. '^esql/20_aggs/*',
  41. '^esql/25_aggs_on_null/*',
  42. '^esql/26_aggs_bucket/*',
  43. '^esql/30_types/*',
  44. '^esql/40_tsdb/*',
  45. '^esql/40_unsupported_types/*',
  46. '^esql/45_non_tsdb_counter/*',
  47. '^esql/50_index_patterns/*',
  48. '^esql/60_enrich/*',
  49. '^esql/60_usage/*',
  50. '^esql/61_enrich_ip/*',
  51. '^esql/62_extra_enrich/*',
  52. '^esql/63_enrich_int_range/*',
  53. '^esql/64_enrich_int_match/*',
  54. '^esql/70_locale/*',
  55. '^esql/80_text/*',
  56. '^esql/81_text_exact_subfields/*',
  57. '^esql/90_non_indexed/*',
  58. '^esql/110_all_null/*',
  59. '^esql/120_profile/*',
  60. '^esql/130_spatial/*',
  61. '^esql/140_metadata/*',
  62. '^esql/150_lookup/*',
  63. '^esql/160_union_types/*',
  64. '^esql/161_union_types_subfields/*',
  65. '^esql/170_no_replicas/*',
  66. '^esql/180_match_operator/*',
  67. '^health/10_usage/*',
  68. '^ilm/10_basic/Test Undeletable Policy In Use',
  69. '^ilm/20_move_to_step/*',
  70. '^ilm/30_retry/*',
  71. '^ilm/40_explain_lifecycle/*',
  72. '^ilm/60_operation_mode/*',
  73. '^ilm/60_remove_policy_for_index/*',
  74. '^ilm/70_downsampling/*',
  75. '^ilm/80_health/*',
  76. '^logsdb/10_usage/*',
  77. '^ml/3rd_party_deployment/*',
  78. '^ml/bucket_correlation_agg/*',
  79. '^ml/bucket_count_ks_test_agg/*',
  80. '^ml/calendar_crud/*',
  81. '^ml/categorization_agg/*',
  82. '^ml/change_point_agg/*',
  83. '^ml/custom_all_field/*',
  84. '^ml/data_frame_analytics_cat_apis/*',
  85. '^ml/data_frame_analytics_crud/*',
  86. '^ml/datafeed_cat_apis/*',
  87. '^ml/datafeeds_crud/*',
  88. '^ml/delete_expired_data/*',
  89. '^ml/delete_job_force/*',
  90. '^ml/explain_data_frame_analytics/*',
  91. '^ml/filter_crud/*',
  92. '^ml/forecast/*',
  93. '^ml/frequent_item_sets_agg/*',
  94. '^ml/get_datafeed_stats/*',
  95. '^ml/get_datafeeds/*',
  96. '^ml/get_memory_stats/*',
  97. '^ml/get_model_snapshots/*',
  98. '^ml/get_model_snapshots/*/*',
  99. '^ml/get_trained_model_stats/*',
  100. '^ml/inference_crud/*',
  101. '^ml/inference_processor/*',
  102. '^ml/job_cat_apis/*',
  103. '^ml/job_groups/*',
  104. '^ml/jobs_crud/*',
  105. '^ml/jobs_get/*',
  106. '^ml/jobs_get_result_buckets/*',
  107. '^ml/jobs_get_result_categories/*',
  108. '^ml/jobs_get_result_influencers/*',
  109. '^ml/jobs_get_result_overall_buckets/*',
  110. '^ml/jobs_get_result_records/*',
  111. '^ml/jobs_get_stats/*',
  112. '^ml/learning_to_rank_rescorer/*',
  113. '^ml/ml_anomalies_default_mappings/*',
  114. '^ml/ml_info/*',
  115. '^ml/p_value_significant_term_score/*',
  116. '^ml/pipeline_inference/*',
  117. '^ml/post_data/*',
  118. '^ml/preview_data_frame_analytics/*',
  119. '^ml/preview_datafeed/*',
  120. '^ml/reset_job/*',
  121. '^ml/revert_model_snapshot/*',
  122. '^ml/search_knn_query_vector_builder/*',
  123. '^ml/set_upgrade_mode/*',
  124. '^ml/sparse_vector_search/*',
  125. '^ml/start_data_frame_analytics/*',
  126. '^ml/start_stop_datafeed/*',
  127. '^ml/stop_data_frame_analytics/*',
  128. '^ml/stop_data_frame_analytics/Test stop with inconsistent body/param ids',
  129. '^ml/text_embedding_search/*',
  130. '^ml/text_expansion_search/*',
  131. '^ml/text_expansion_search_rank_features/*',
  132. '^ml/text_expansion_search_sparse_vector/*',
  133. '^ml/trained_model_cat_apis/*',
  134. '^ml/update_trained_model_deployment/*',
  135. '^ml/upgrade_job_snapshot/*',
  136. '^monitoring/bulk/10_basic/*',
  137. '^monitoring/bulk/20_privileges/*',
  138. '^profiling/10_basic/*',
  139. '^redact/10_redact_processor/*',
  140. '^role_mapping/10_basic/*',
  141. '^role_mapping/20_get_missing/*',
  142. '^role_mapping/30_delete/*',
  143. '^rollup/delete_job/*',
  144. '^rollup/get_jobs/*',
  145. '^rollup/get_rollup_caps/*',
  146. '^rollup/get_rollup_index_caps/*',
  147. '^rollup/put_job/*',
  148. '^rollup/rollup_search/*',
  149. '^rollup/start_job/*',
  150. '^rollup/stop_job/*',
  151. '^searchable_snapshots/10_usage/*',
  152. '^searchable_snapshots/20_synthetic_source/*',
  153. '^security/authz/12_index_alias/*',
  154. '^security/authz/14_cat_indices/*',
  155. '^security/authz/14_cat_indices/Test explicit request while multiple opened/*',
  156. '^security/authz/30_dynamic_put_mapping/*',
  157. '^security/authz/31_rollover_using_alias/*',
  158. '^security/authz/50_data_streams/*',
  159. '^security/authz/51_data_stream_aliases/*',
  160. '^security/authz/60_resolve_index/*',
  161. '^security/authz/80_downsample/*',
  162. '^security/settings/10_update_security_settings/*',
  163. '^set_security_user/10_small_users_one_index/*',
  164. '^set_security_user/20_api_key/*',
  165. '^snapshot/10_basic/*',
  166. '^snapshot/20_operator_privileges_disabled/*',
  167. '^spatial/50_feature_usage/*',
  168. '^spatial/100_geo_grid_ingest/*',
  169. '^transform/preview_transforms/*',
  170. '^transform/transforms_cat_apis/*',
  171. '^transform/transforms_crud/*',
  172. '^transform/transforms_force_delete/*',
  173. '^transform/transforms_reset/*',
  174. '^transform/transforms_start_stop/*',
  175. '^transform/transforms_start_stop/Test start/stop only starts/stops specified transform',
  176. '^transform/transforms_start_stop/Test start/stop with field alias',
  177. '^transform/transforms_start_stop/Test start/stop/start continuous transform',
  178. '^transform/transforms_start_stop/Test start/stop/start transform',
  179. '^transform/transforms_stats/*',
  180. '^transform/transforms_stats_continuous/*',
  181. '^transform/transforms_unattended/*',
  182. '^transform/transforms_update/*',
  183. '^transform/transforms_upgrade/*',
  184. '^voting_only_node/10_basic/*'
  185. ];
  186. if (buildParams.isSnapshotBuild() == false) {
  187. blacklist += [];
  188. }
  189. systemProperty 'tests.rest.blacklist', blacklist.join(',')
  190. }