build.gradle 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  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. restXpackTestConfig project(path: ':x-pack:plugin:downsample:qa:rest', configuration: "basicRestSpecs")
  11. restXpackTestConfig project(path: ':x-pack:plugin:stack', configuration: "basicRestSpecs")
  12. }
  13. // let the yamlRestTests see the classpath of test
  14. GradleUtils.extendSourceSet(project, "test", "yamlRestTest", tasks.named("yamlRestTest"))
  15. restResources {
  16. restTests {
  17. includeXpack '*'
  18. }
  19. }
  20. tasks.named("yamlRestTest").configure {
  21. usesDefaultDistribution("to be triaged")
  22. ArrayList<String> blacklist = [
  23. /* These tests don't work on multi-project yet - we need to go through each of them and make them work */
  24. // These analytics tests work in MP mode, they just don't work with security enabled.
  25. '^analytics/boxplot/*',
  26. '^analytics/histogram/*',
  27. '^analytics/moving_percentiles/*',
  28. '^analytics/top_metrics/*',
  29. '^analytics/usage/*',
  30. '^data_streams/10_data_stream_resolvability/*',
  31. '^deprecation/10_basic/*',
  32. '^dlm/10_usage/*',
  33. '^esql/60_enrich/*',
  34. '^esql/60_usage/*',
  35. '^esql/61_enrich_ip/*',
  36. '^esql/62_extra_enrich/*',
  37. '^esql/63_enrich_int_range/*',
  38. '^esql/64_enrich_int_match/*',
  39. '^esql/180_match_operator/*',
  40. '^esql/190_lookup_join/*',
  41. '^esql/191_lookup_join_on_datastreams/*',
  42. '^esql/191_lookup_join_text/*',
  43. '^esql/192_lookup_join_on_aliases/*',
  44. '^health/10_usage/*',
  45. '^ilm/10_basic/Test Undeletable Policy In Use',
  46. '^ilm/20_move_to_step/*',
  47. '^ilm/30_retry/*',
  48. '^ilm/60_operation_mode/*',
  49. '^ilm/60_remove_policy_for_index/*',
  50. '^ilm/70_downsampling/*',
  51. '^ilm/80_health/*',
  52. '^logsdb/10_usage/*',
  53. '^migrate/10_reindex/*',
  54. '^migrate/20_reindex_status/*',
  55. '^migrate/30_create_from/*',
  56. '^migration/10_get_feature_upgrade_status/*',
  57. '^migration/20_post_feature_upgrade/*',
  58. '^ml/3rd_party_deployment/*',
  59. '^ml/bucket_correlation_agg/*',
  60. '^ml/bucket_count_ks_test_agg/*',
  61. '^ml/calendar_crud/*',
  62. '^ml/categorization_agg/*',
  63. '^ml/change_point_agg/*',
  64. '^ml/custom_all_field/*',
  65. '^ml/data_frame_analytics_cat_apis/*',
  66. '^ml/data_frame_analytics_crud/*',
  67. '^ml/datafeed_cat_apis/*',
  68. '^ml/datafeeds_crud/*',
  69. '^ml/delete_expired_data/*',
  70. '^ml/delete_job_force/*',
  71. '^ml/explain_data_frame_analytics/*',
  72. '^ml/filter_crud/*',
  73. '^ml/forecast/*',
  74. '^ml/frequent_item_sets_agg/*',
  75. '^ml/get_datafeed_stats/*',
  76. '^ml/get_datafeeds/*',
  77. '^ml/get_memory_stats/*',
  78. '^ml/get_model_snapshots/*',
  79. '^ml/get_model_snapshots/*/*',
  80. '^ml/get_trained_model_stats/*',
  81. '^ml/inference_crud/*',
  82. '^ml/inference_processor/*',
  83. '^ml/job_cat_apis/*',
  84. '^ml/job_groups/*',
  85. '^ml/jobs_crud/*',
  86. '^ml/jobs_get/*',
  87. '^ml/jobs_get_result_buckets/*',
  88. '^ml/jobs_get_result_categories/*',
  89. '^ml/jobs_get_result_influencers/*',
  90. '^ml/jobs_get_result_overall_buckets/*',
  91. '^ml/jobs_get_result_records/*',
  92. '^ml/jobs_get_stats/*',
  93. '^ml/learning_to_rank_rescorer/*',
  94. '^ml/ml_anomalies_default_mappings/*',
  95. '^ml/ml_info/*',
  96. '^ml/p_value_significant_term_score/*',
  97. '^ml/pipeline_inference/*',
  98. '^ml/post_data/*',
  99. '^ml/preview_data_frame_analytics/*',
  100. '^ml/preview_datafeed/*',
  101. '^ml/reset_job/*',
  102. '^ml/revert_model_snapshot/*',
  103. '^ml/search_knn_query_vector_builder/*',
  104. '^ml/set_upgrade_mode/*',
  105. '^ml/sparse_vector_search/*',
  106. '^ml/start_data_frame_analytics/*',
  107. '^ml/start_stop_datafeed/*',
  108. '^ml/stop_data_frame_analytics/*',
  109. '^ml/stop_data_frame_analytics/Test stop with inconsistent body/param ids',
  110. '^ml/text_embedding_search/*',
  111. '^ml/text_expansion_search/*',
  112. '^ml/text_expansion_search_rank_features/*',
  113. '^ml/text_expansion_search_sparse_vector/*',
  114. '^ml/trained_model_cat_apis/*',
  115. '^ml/update_trained_model_deployment/*',
  116. '^ml/upgrade_job_snapshot/*',
  117. '^monitoring/bulk/10_basic/*',
  118. '^monitoring/bulk/20_privileges/*',
  119. '^profiling/10_basic/*',
  120. '^rollup/delete_job/*',
  121. '^rollup/get_jobs/*',
  122. '^rollup/get_rollup_caps/*',
  123. '^rollup/get_rollup_index_caps/*',
  124. '^rollup/put_job/*',
  125. '^rollup/rollup_search/*',
  126. '^rollup/start_job/*',
  127. '^rollup/stop_job/*',
  128. '^searchable_snapshots/10_usage/*',
  129. '^searchable_snapshots/20_synthetic_source/*',
  130. '^security/authz/14_cat_indices/*',
  131. '^security/authz/14_cat_indices/Test explicit request while multiple opened/*',
  132. '^security/authz/60_resolve_index/*',
  133. '^security/settings/10_update_security_settings/*',
  134. '^snapshot/10_basic/*',
  135. '^snapshot/20_operator_privileges_disabled/*',
  136. '^spatial/50_feature_usage/*',
  137. '^spatial/100_geo_grid_ingest/*',
  138. '^transform/preview_transforms/*',
  139. '^transform/transforms_cat_apis/*',
  140. '^transform/transforms_crud/*',
  141. '^transform/transforms_force_delete/*',
  142. '^transform/transforms_reset/*',
  143. '^transform/transforms_start_stop/*',
  144. '^transform/transforms_start_stop/Test start/stop only starts/stops specified transform',
  145. '^transform/transforms_start_stop/Test start/stop with field alias',
  146. '^transform/transforms_start_stop/Test start/stop/start continuous transform',
  147. '^transform/transforms_start_stop/Test start/stop/start transform',
  148. '^transform/transforms_stats/*',
  149. '^transform/transforms_stats_continuous/*',
  150. '^transform/transforms_unattended/*',
  151. '^transform/transforms_update/*',
  152. '^transform/transforms_upgrade/*',
  153. '^voting_only_node/10_basic/*'
  154. ];
  155. if (buildParams.snapshotBuild == false) {
  156. blacklist += [];
  157. }
  158. systemProperty 'tests.rest.blacklist', blacklist.join(',')
  159. systemProperty "tests.multi_project.enabled", true
  160. }