Skip to content

Commit dfb0f81

Browse files
Add allowed_warnings in yaml restful tests (#4731)
Signed-off-by: Lantao Jin <[email protected]> (cherry picked from commit a24e794) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent ae9fa90 commit dfb0f81

File tree

25 files changed

+125
-1
lines changed

25 files changed

+125
-1
lines changed

integ-test/src/yamlRestTest/resources/rest-api-spec/test/issues/3459.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ teardown:
4848
- allowed_warnings
4949

5050
- do:
51+
allowed_warnings:
52+
- 'Loading the fielddata on the _id field is deprecated and will be removed in future versions. If you require sorting or aggregating on this field you should also include the id in the body of your documents, and map this field as a keyword field that has [doc_values] enabled'
5153
headers:
5254
Content-Type: 'application/json'
5355
ppl:

integ-test/src/yamlRestTest/resources/rest-api-spec/test/issues/3655.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ teardown:
4444
plugins.calcite.enabled : true
4545

4646
- do:
47+
allowed_warnings:
48+
- 'Loading the fielddata on the _id field is deprecated and will be removed in future versions. If you require sorting or aggregating on this field you should also include the id in the body of your documents, and map this field as a keyword field that has [doc_values] enabled'
4749
headers:
4850
Content-Type: 'application/json'
4951
ppl:
@@ -54,6 +56,8 @@ teardown:
5456
- match: {"datarows": [["This is a match_only_text field 1"]]}
5557

5658
- do:
59+
allowed_warnings:
60+
- 'Loading the fielddata on the _id field is deprecated and will be removed in future versions. If you require sorting or aggregating on this field you should also include the id in the body of your documents, and map this field as a keyword field that has [doc_values] enabled'
5761
headers:
5862
Content-Type: 'application/json'
5963
ppl:
@@ -66,6 +70,8 @@ teardown:
6670
---
6771
"Support match_only_text field type with Calcite disabled":
6872
- do:
73+
allowed_warnings:
74+
- 'Loading the fielddata on the _id field is deprecated and will be removed in future versions. If you require sorting or aggregating on this field you should also include the id in the body of your documents, and map this field as a keyword field that has [doc_values] enabled'
6975
headers:
7076
Content-Type: 'application/json'
7177
ppl:

integ-test/src/yamlRestTest/resources/rest-api-spec/test/issues/3946.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ teardown:
3939
- headers
4040
- allowed_warnings
4141
- do:
42-
allowed_warnings: []
42+
allowed_warnings:
43+
- 'Loading the fielddata on the _id field is deprecated and will be removed in future versions. If you require sorting or aggregating on this field you should also include the id in the body of your documents, and map this field as a keyword field that has [doc_values] enabled'
4344
headers:
4445
Content-Type: 'application/json'
4546
ppl:

integ-test/src/yamlRestTest/resources/rest-api-spec/test/issues/4201.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ teardown:
8888
- headers
8989
- allowed_warnings
9090
- do:
91+
allowed_warnings:
92+
- 'Loading the fielddata on the _id field is deprecated and will be removed in future versions. If you require sorting or aggregating on this field you should also include the id in the body of your documents, and map this field as a keyword field that has [doc_values] enabled'
9193
headers:
9294
Content-Type: 'application/json'
9395
ppl:

integ-test/src/yamlRestTest/resources/rest-api-spec/test/issues/4339.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ teardown:
4646
- skip:
4747
features:
4848
- headers
49+
- allowed_warnings
4950
- do:
5051
bulk:
5152
index: test
@@ -72,6 +73,8 @@ teardown:
7273
- '{"index": {}}'
7374
- '{"log": {"url": {"time": 2} } }'
7475
- do:
76+
allowed_warnings:
77+
- 'Loading the fielddata on the _id field is deprecated and will be removed in future versions. If you require sorting or aggregating on this field you should also include the id in the body of your documents, and map this field as a keyword field that has [doc_values] enabled'
7578
headers:
7679
Content-Type: 'application/json'
7780
ppl:

integ-test/src/yamlRestTest/resources/rest-api-spec/test/issues/4342.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ teardown:
3737
- '{ "@timestamp" : "2025-09-04T16:15:00.000Z" }'
3838

3939
- do:
40+
allowed_warnings:
41+
- 'Loading the fielddata on the _id field is deprecated and will be removed in future versions. If you require sorting or aggregating on this field you should also include the id in the body of your documents, and map this field as a keyword field that has [doc_values] enabled'
4042
headers:
4143
Content-Type: 'application/json'
4244
ppl:

integ-test/src/yamlRestTest/resources/rest-api-spec/test/issues/4356.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,10 @@ teardown:
7474
- skip:
7575
features:
7676
- headers
77+
- allowed_warnings
7778
- do:
79+
allowed_warnings:
80+
- 'Loading the fielddata on the _id field is deprecated and will be removed in future versions. If you require sorting or aggregating on this field you should also include the id in the body of your documents, and map this field as a keyword field that has [doc_values] enabled'
7881
headers:
7982
Content-Type: 'application/json'
8083
ppl:
@@ -84,6 +87,8 @@ teardown:
8487
- match: {"datarows": [[10.0, 0.1], [15.0, 0.15], [null, null], [null, null]]}
8588

8689
- do:
90+
allowed_warnings:
91+
- 'Loading the fielddata on the _id field is deprecated and will be removed in future versions. If you require sorting or aggregating on this field you should also include the id in the body of your documents, and map this field as a keyword field that has [doc_values] enabled'
8792
headers:
8893
Content-Type: 'application/json'
8994
ppl:
@@ -93,6 +98,8 @@ teardown:
9398
- match: { "datarows": [ [ "11", 1.0 ], [ "1.51.5", 2.25 ], [ "truetrue", null ], [ "abcdeabcde", null ] ] }
9499

95100
- do:
101+
allowed_warnings:
102+
- 'Loading the fielddata on the _id field is deprecated and will be removed in future versions. If you require sorting or aggregating on this field you should also include the id in the body of your documents, and map this field as a keyword field that has [doc_values] enabled'
96103
headers:
97104
Content-Type: 'application/json'
98105
ppl:
@@ -106,7 +113,10 @@ teardown:
106113
- skip:
107114
features:
108115
- headers
116+
- allowed_warnings
109117
- do:
118+
allowed_warnings:
119+
- 'Loading the fielddata on the _id field is deprecated and will be removed in future versions. If you require sorting or aggregating on this field you should also include the id in the body of your documents, and map this field as a keyword field that has [doc_values] enabled'
110120
headers:
111121
Content-Type: 'application/json'
112122
ppl:
@@ -116,6 +126,8 @@ teardown:
116126
- match: {"datarows": [[true,true,null], [false,true,null], [null, null, true], [null, null, null]]}
117127

118128
- do:
129+
allowed_warnings:
130+
- 'Loading the fielddata on the _id field is deprecated and will be removed in future versions. If you require sorting or aggregating on this field you should also include the id in the body of your documents, and map this field as a keyword field that has [doc_values] enabled'
119131
headers:
120132
Content-Type: 'application/json'
121133
ppl:
@@ -129,7 +141,10 @@ teardown:
129141
- skip:
130142
features:
131143
- headers
144+
- allowed_warnings
132145
- do:
146+
allowed_warnings:
147+
- 'Loading the fielddata on the _id field is deprecated and will be removed in future versions. If you require sorting or aggregating on this field you should also include the id in the body of your documents, and map this field as a keyword field that has [doc_values] enabled'
133148
headers:
134149
Content-Type: 'application/json'
135150
ppl:
@@ -144,7 +159,10 @@ teardown:
144159
- skip:
145160
features:
146161
- headers
162+
- allowed_warnings
147163
- do:
164+
allowed_warnings:
165+
- 'Loading the fielddata on the _id field is deprecated and will be removed in future versions. If you require sorting or aggregating on this field you should also include the id in the body of your documents, and map this field as a keyword field that has [doc_values] enabled'
148166
headers:
149167
Content-Type: 'application/json'
150168
ppl:
@@ -158,7 +176,10 @@ teardown:
158176
- skip:
159177
features:
160178
- headers
179+
- allowed_warnings
161180
- do:
181+
allowed_warnings:
182+
- 'Loading the fielddata on the _id field is deprecated and will be removed in future versions. If you require sorting or aggregating on this field you should also include the id in the body of your documents, and map this field as a keyword field that has [doc_values] enabled'
162183
headers:
163184
Content-Type: 'application/json'
164185
ppl:
@@ -168,6 +189,8 @@ teardown:
168189
- match: {"datarows": [[4, 2.5, 1.25]]}
169190

170191
- do:
192+
allowed_warnings:
193+
- 'Loading the fielddata on the _id field is deprecated and will be removed in future versions. If you require sorting or aggregating on this field you should also include the id in the body of your documents, and map this field as a keyword field that has [doc_values] enabled'
171194
headers:
172195
Content-Type: 'application/json'
173196
ppl:
@@ -181,7 +204,10 @@ teardown:
181204
- skip:
182205
features:
183206
- headers
207+
- allowed_warnings
184208
- do:
209+
allowed_warnings:
210+
- 'Loading the fielddata on the _id field is deprecated and will be removed in future versions. If you require sorting or aggregating on this field you should also include the id in the body of your documents, and map this field as a keyword field that has [doc_values] enabled'
185211
headers:
186212
Content-Type: 'application/json'
187213
ppl:

integ-test/src/yamlRestTest/resources/rest-api-spec/test/issues/4383.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ teardown:
5252
- '{ "host" : "0.0.0.2" }'
5353

5454
- do:
55+
allowed_warnings:
56+
- 'Loading the fielddata on the _id field is deprecated and will be removed in future versions. If you require sorting or aggregating on this field you should also include the id in the body of your documents, and map this field as a keyword field that has [doc_values] enabled'
5557
headers:
5658
Content-Type: 'application/json'
5759
ppl:

integ-test/src/yamlRestTest/resources/rest-api-spec/test/issues/4391.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ teardown:
2727
- headers
2828
- allowed_warnings
2929
- do:
30+
allowed_warnings:
31+
- 'Loading the fielddata on the _id field is deprecated and will be removed in future versions. If you require sorting or aggregating on this field you should also include the id in the body of your documents, and map this field as a keyword field that has [doc_values] enabled'
3032
headers:
3133
Content-Type: 'application/json'
3234
ppl:

integ-test/src/yamlRestTest/resources/rest-api-spec/test/issues/4407.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ teardown:
2727
- headers
2828
- allowed_warnings
2929
- do:
30+
allowed_warnings:
31+
- 'Loading the fielddata on the _id field is deprecated and will be removed in future versions. If you require sorting or aggregating on this field you should also include the id in the body of your documents, and map this field as a keyword field that has [doc_values] enabled'
3032
headers:
3133
Content-Type: 'application/json'
3234
ppl:

0 commit comments

Comments
 (0)