build.gradle 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  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:downsample:qa:rest', configuration: "basicRestSpecs")
  10. restXpackTestConfig project(path: ':x-pack:plugin:stack', configuration: "basicRestSpecs")
  11. }
  12. // let the yamlRestTests see the classpath of test
  13. GradleUtils.extendSourceSet(project, "test", "yamlRestTest", tasks.named("yamlRestTest"))
  14. restResources {
  15. restTests {
  16. includeXpack '*'
  17. }
  18. }
  19. tasks.named("yamlRestTest").configure {
  20. usesDefaultDistribution("to be triaged")
  21. ArrayList<String> blacklist = [
  22. /* These tests don't work on multi-project yet - we need to go through each of them and make them work */
  23. // These analytics tests work in MP mode, they just don't work with security enabled.
  24. '^analytics/boxplot/*',
  25. '^analytics/histogram/*',
  26. '^analytics/moving_percentiles/*',
  27. '^analytics/top_metrics/*',
  28. '^data_streams/10_data_stream_resolvability/*',
  29. '^health/10_usage/*', // The usage API is project-aware, this test just fails on the project-awareness of the SLM health indicator
  30. '^migration/10_get_feature_upgrade_status/*',
  31. '^migration/20_post_feature_upgrade/*',
  32. '^ml/3rd_party_deployment/*',
  33. '^ml/bucket_correlation_agg/*',
  34. '^ml/bucket_count_ks_test_agg/*',
  35. '^ml/calendar_crud/*',
  36. '^ml/categorization_agg/*',
  37. '^ml/change_point_agg/*',
  38. '^ml/custom_all_field/*',
  39. '^ml/data_frame_analytics_cat_apis/*',
  40. '^ml/data_frame_analytics_crud/*',
  41. '^ml/datafeed_cat_apis/*',
  42. '^ml/datafeeds_crud/*',
  43. '^ml/delete_expired_data/*',
  44. '^ml/delete_job_force/*',
  45. '^ml/explain_data_frame_analytics/*',
  46. '^ml/filter_crud/*',
  47. '^ml/forecast/*',
  48. '^ml/frequent_item_sets_agg/*',
  49. '^ml/get_datafeed_stats/*',
  50. '^ml/get_datafeeds/*',
  51. '^ml/get_memory_stats/*',
  52. '^ml/get_model_snapshots/*',
  53. '^ml/get_model_snapshots/*/*',
  54. '^ml/get_trained_model_stats/*',
  55. '^ml/inference_crud/*',
  56. '^ml/inference_processor/*',
  57. '^ml/job_cat_apis/*',
  58. '^ml/job_groups/*',
  59. '^ml/jobs_crud/*',
  60. '^ml/jobs_get/*',
  61. '^ml/jobs_get_result_buckets/*',
  62. '^ml/jobs_get_result_categories/*',
  63. '^ml/jobs_get_result_influencers/*',
  64. '^ml/jobs_get_result_overall_buckets/*',
  65. '^ml/jobs_get_result_records/*',
  66. '^ml/jobs_get_stats/*',
  67. '^ml/learning_to_rank_rescorer/*',
  68. '^ml/ml_anomalies_default_mappings/*',
  69. '^ml/ml_info/*',
  70. '^ml/p_value_significant_term_score/*',
  71. '^ml/pipeline_inference/*',
  72. '^ml/post_data/*',
  73. '^ml/preview_data_frame_analytics/*',
  74. '^ml/preview_datafeed/*',
  75. '^ml/reset_job/*',
  76. '^ml/revert_model_snapshot/*',
  77. '^ml/search_knn_query_vector_builder/*',
  78. '^ml/set_upgrade_mode/*',
  79. '^ml/sparse_vector_search/*',
  80. '^ml/start_data_frame_analytics/*',
  81. '^ml/start_stop_datafeed/*',
  82. '^ml/stop_data_frame_analytics/*',
  83. '^ml/stop_data_frame_analytics/Test stop with inconsistent body/param ids',
  84. '^ml/text_embedding_search/*',
  85. '^ml/text_expansion_search/*',
  86. '^ml/text_expansion_search_rank_features/*',
  87. '^ml/text_expansion_search_sparse_vector/*',
  88. '^ml/trained_model_cat_apis/*',
  89. '^ml/update_trained_model_deployment/*',
  90. '^ml/upgrade_job_snapshot/*',
  91. '^monitoring/bulk/10_basic/*',
  92. '^monitoring/bulk/20_privileges/*',
  93. '^profiling/10_basic/*',
  94. // These rollup tests work in MP mode, they just don't work with security enabled.
  95. '^rollup/delete_job/*',
  96. '^rollup/get_jobs/*',
  97. '^rollup/get_rollup_caps/*',
  98. '^rollup/get_rollup_index_caps/*',
  99. '^rollup/put_job/*',
  100. '^rollup/rollup_search/*',
  101. '^rollup/start_job/*',
  102. '^rollup/stop_job/*',
  103. '^searchable_snapshots/10_usage/*', // The usage API is project-aware, so this test can be unmuted once snapshot repositories are project-aware
  104. '^searchable_snapshots/20_synthetic_source/*',
  105. '^security/settings/10_update_security_settings/*',
  106. '^snapshot/10_basic/*',
  107. '^snapshot/20_operator_privileges_disabled/*',
  108. '^transform/preview_transforms/*',
  109. '^transform/transforms_cat_apis/*',
  110. '^transform/transforms_crud/*',
  111. '^transform/transforms_force_delete/*',
  112. '^transform/transforms_reset/*',
  113. '^transform/transforms_start_stop/*',
  114. '^transform/transforms_start_stop/Test start/stop only starts/stops specified transform',
  115. '^transform/transforms_start_stop/Test start/stop with field alias',
  116. '^transform/transforms_start_stop/Test start/stop/start continuous transform',
  117. '^transform/transforms_start_stop/Test start/stop/start transform',
  118. '^transform/transforms_stats/*',
  119. '^transform/transforms_stats_continuous/*',
  120. '^transform/transforms_unattended/*',
  121. '^transform/transforms_update/*',
  122. '^transform/transforms_upgrade/*',
  123. ];
  124. if (buildParams.snapshotBuild == false) {
  125. blacklist += [];
  126. }
  127. systemProperty 'tests.rest.blacklist', blacklist.join(',')
  128. systemProperty "tests.multi_project.enabled", true
  129. }