|
1 | 1 | import org.elasticsearch.gradle.Version
|
| 2 | +import org.elasticsearch.gradle.VersionProperties |
2 | 3 | import org.elasticsearch.gradle.internal.info.BuildParams
|
3 |
| -import org.elasticsearch.gradle.util.GradleUtils |
4 | 4 | import org.elasticsearch.gradle.internal.test.RestIntegTestTask
|
5 |
| -import org.elasticsearch.gradle.VersionProperties |
| 5 | +import org.elasticsearch.gradle.util.GradleUtils |
6 | 6 |
|
7 | 7 | apply plugin: 'elasticsearch.internal-yaml-rest-test'
|
8 | 8 | apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
@@ -77,54 +77,75 @@ tasks.named("yamlRestTest").configure {
|
77 | 77 | }
|
78 | 78 |
|
79 | 79 | tasks.named("yamlRestTestV7CompatTest").configure {
|
80 |
| - systemProperty 'tests.rest.blacklist', [ |
81 |
| - 'unsigned_long/50_script_values/Scripted sort values', |
82 |
| - 'unsigned_long/50_script_values/script_score query', |
83 |
| - 'unsigned_long/50_script_values/Script query', |
84 |
| - 'data_stream/140_data_stream_aliases/Fix IndexNotFoundException error when handling remove alias action', |
85 |
| - ].join(',') |
| 80 | + systemProperty 'tests.rest.blacklist', [ |
| 81 | + 'unsigned_long/50_script_values/Scripted sort values', |
| 82 | + 'unsigned_long/50_script_values/script_score query', |
| 83 | + 'unsigned_long/50_script_values/Script query', |
| 84 | + 'data_stream/140_data_stream_aliases/Fix IndexNotFoundException error when handling remove alias action', |
| 85 | + ].join(',') |
86 | 86 | }
|
87 | 87 |
|
88 |
| -tasks.named("yamlRestTestV7CompatTransform").configure{ task -> |
89 |
| - task.skipTest("vectors/10_dense_vector_basic/Deprecated function signature", "to support it, it would require to almost revert back the #48725 and complicate the code" ) |
| 88 | +tasks.named("yamlRestTestV7CompatTransform").configure { task -> |
| 89 | + task.skipTest( |
| 90 | + "vectors/10_dense_vector_basic/Deprecated function signature", |
| 91 | + "to support it, it would require to almost revert back the #48725 and complicate the code" |
| 92 | + ) |
90 | 93 | task.skipTest("vectors/30_sparse_vector_basic/Cosine Similarity", "not supported for compatibility")
|
91 | 94 | task.skipTest("vectors/30_sparse_vector_basic/Deprecated function signature", "not supported for compatibility")
|
92 | 95 | task.skipTest("vectors/30_sparse_vector_basic/Dot Product", "not supported for compatibility")
|
93 | 96 | task.skipTest("vectors/35_sparse_vector_l1l2/L1 norm", "not supported for compatibility")
|
94 | 97 | task.skipTest("vectors/35_sparse_vector_l1l2/L2 norm", "not supported for compatibility")
|
95 | 98 | task.skipTest("vectors/40_sparse_vector_special_cases/Dimensions can be sorted differently", "not supported for compatibility")
|
96 | 99 | task.skipTest("vectors/40_sparse_vector_special_cases/Documents missing a vector field", "not supported for compatibility")
|
97 |
| - task.skipTest("vectors/40_sparse_vector_special_cases/Query vector has different dimensions from documents' vectors", "not supported for compatibility") |
| 100 | + task.skipTest( |
| 101 | + "vectors/40_sparse_vector_special_cases/Query vector has different dimensions from documents' vectors", |
| 102 | + "not supported for compatibility" |
| 103 | + ) |
98 | 104 | task.skipTest("vectors/40_sparse_vector_special_cases/Sparse vectors should error with dense vector functions", "not supported for compatibility")
|
99 | 105 | task.skipTest("vectors/40_sparse_vector_special_cases/Vectors of different dimensions and data types", "not supported for compatibility")
|
100 | 106 | task.skipTest("vectors/50_vector_stats/Usage stats on vector fields", "not supported for compatibility")
|
101 |
| - task.skipTest("roles/30_prohibited_role_query/Test use prohibited query inside role query", "put role request with a term lookup (deprecated) and type. Requires validation in REST layer") |
| 107 | + task.skipTest( |
| 108 | + "roles/30_prohibited_role_query/Test use prohibited query inside role query", |
| 109 | + "put role request with a term lookup (deprecated) and type. Requires validation in REST layer" |
| 110 | + ) |
102 | 111 | task.skipTest("ml/jobs_crud/Test create job with delimited format", "removing undocumented functionality")
|
103 | 112 | task.skipTest("ml/datafeeds_crud/Test update datafeed to point to missing job", "behaviour change #44752 - not allowing to update datafeed job_id")
|
104 |
| - task.skipTest("ml/datafeeds_crud/Test update datafeed to point to different job", "behaviour change #44752 - not allowing to update datafeed job_id") |
105 |
| - task.skipTest("ml/datafeeds_crud/Test update datafeed to point to job already attached to another datafeed", "behaviour change #44752 - not allowing to update datafeed job_id") |
| 113 | + task.skipTest( |
| 114 | + "ml/datafeeds_crud/Test update datafeed to point to different job", |
| 115 | + "behaviour change #44752 - not allowing to update datafeed job_id" |
| 116 | + ) |
| 117 | + task.skipTest( |
| 118 | + "ml/datafeeds_crud/Test update datafeed to point to job already attached to another datafeed", |
| 119 | + "behaviour change #44752 - not allowing to update datafeed job_id" |
| 120 | + ) |
106 | 121 | task.skipTest("rollup/delete_job/Test basic delete_job", "rollup was an experimental feature, also see #41227")
|
107 | 122 | task.skipTest("rollup/delete_job/Test delete job twice", "rollup was an experimental feature, also see #41227")
|
108 | 123 | task.skipTest("rollup/delete_job/Test delete running job", "rollup was an experimental feature, also see #41227")
|
109 | 124 | task.skipTest("rollup/get_jobs/Test basic get_jobs", "rollup was an experimental feature, also see #41227")
|
110 | 125 | task.skipTest("rollup/put_job/Test basic put_job", "rollup was an experimental feature, also see #41227")
|
111 | 126 | task.skipTest("rollup/start_job/Test start job twice", "rollup was an experimental feature, also see #41227")
|
112 |
| - task.skipTest("ml/trained_model_cat_apis/Test cat trained models", "A type field was added to cat.ml_trained_models #73660, this is a backwards compatible change. Still this is a cat api, and we don't support them with rest api compatibility. (the test would be very hard to transform too)") |
| 127 | + task.skipTest( |
| 128 | + "ml/trained_model_cat_apis/Test cat trained models", |
| 129 | + "A type field was added to cat.ml_trained_models #73660, this is a backwards compatible change. Still this is a cat api, and we don't support them with rest api compatibility. (the test would be very hard to transform too)" |
| 130 | + ) |
113 | 131 | task.skipTest("indices.freeze/30_usage/Usage stats on frozen indices", "#70192 -- the freeze index API is removed from 8.0")
|
114 | 132 | task.skipTest("indices.freeze/20_stats/Translog stats on frozen indices", "#70192 -- the freeze index API is removed from 8.0")
|
115 | 133 | task.skipTest("indices.freeze/10_basic/Basic", "#70192 -- the freeze index API is removed from 8.0")
|
116 | 134 | task.skipTest("indices.freeze/10_basic/Test index options", "#70192 -- the freeze index API is removed from 8.0")
|
| 135 | + task.skipTest("sql/sql/Paging through results", "scrolling through search hit queries no longer produces empty last page in 8.2") |
117 | 136 | task.skipTest("service_accounts/10_basic/Test get service accounts", "new service accounts are added")
|
118 | 137 |
|
119 | 138 | task.replaceValueInMatch("_type", "_doc")
|
120 | 139 | task.addAllowedWarningRegex("\\[types removal\\].*")
|
121 | 140 | task.addAllowedWarningRegexForTest("Including \\[accept_enterprise\\] in get license.*", "Installing enterprise license")
|
122 | 141 | task.addAllowedWarningRegex("bucket_span .* is not an integral .* of the number of seconds in 1d.* This is now deprecated.*")
|
123 | 142 |
|
124 |
| - task.replaceValueTextByKeyValue("catch", |
| 143 | + task.replaceValueTextByKeyValue( |
| 144 | + "catch", |
125 | 145 | 'bad_request',
|
126 | 146 | '/It is no longer possible to freeze indices, but existing frozen indices can still be unfrozen/',
|
127 |
| - "Cannot freeze write index for data stream") |
| 147 | + "Cannot freeze write index for data stream" |
| 148 | + ) |
128 | 149 | }
|
129 | 150 |
|
130 | 151 |
|
|
0 commit comments