Skip to content

Commit 877835e

Browse files
authored
Allow warning header for yaml test (#3846)
* Allow warning header for yaml test Signed-off-by: Heng Qian <qianheng@amazon.com> * Allow warning header for all yaml tests Signed-off-by: Heng Qian <qianheng@amazon.com> --------- Signed-off-by: Heng Qian <qianheng@amazon.com>
1 parent 76b3ec2 commit 877835e

11 files changed

Lines changed: 37 additions & 1 deletion

File tree

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ teardown:
3131
- skip:
3232
features:
3333
- headers
34+
- allowed_warnings
3435
- do:
3536
bulk:
3637
index: test
@@ -39,6 +40,8 @@ teardown:
3940
- '{"index": {}}'
4041
- '{"timestamp": "1705642934886"}'
4142
- do:
43+
allowed_warnings:
44+
- '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'
4245
headers:
4346
Content-Type: 'application/json'
4447
ppl:
@@ -47,4 +50,3 @@ teardown:
4750
- match: {"total": 1}
4851
- match: {"schema": [{"name": "timestamp", "type": "timestamp"}]}
4952
- match: {"datarows": [["2024-01-19 05:42:14.886"]]}
50-

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ setup:
22
- skip:
33
features:
44
- headers
5+
- allowed_warnings
56
- do:
67
indices.create:
78
index: test
@@ -23,6 +24,8 @@ setup:
2324
---
2425
"Prevent push down limit if the offset reach max_result_window":
2526
- do:
27+
allowed_warnings:
28+
- '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'
2629
headers:
2730
Content-Type: 'application/json'
2831
ppl:
@@ -33,6 +36,8 @@ setup:
3336
- match: {"datarows": [[2]]}
3437

3538
- do:
39+
allowed_warnings:
40+
- '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'
3641
headers:
3742
Content-Type: 'application/json'
3843
ppl:

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
- skip:
33
features:
44
- headers
5+
- allowed_warnings
56
- do:
67
bulk:
78
index: test
@@ -10,6 +11,8 @@
1011
- '{"index": {}}'
1112
- '{"log": {"url": {"message": "/e2e/h/zap"} } }'
1213
- do:
14+
allowed_warnings:
15+
- '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'
1316
headers:
1417
Content-Type: 'application/json'
1518
ppl:

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ teardown:
2020
- skip:
2121
features:
2222
- headers
23+
- allowed_warnings
2324
- do:
2425
bulk:
2526
index: test
@@ -36,6 +37,8 @@ teardown:
3637
- '{"index": {}}'
3738
- '{"log": { "json" : {} }, "log.json": { "status": "SUCCESS" }, "log.json.time": 100 }'
3839
- 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'
3942
headers:
4043
Content-Type: 'application/json'
4144
ppl:

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,10 @@ teardown:
132132
- skip:
133133
features:
134134
- headers
135+
- allowed_warnings
135136
- do:
137+
allowed_warnings:
138+
- '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'
136139
headers:
137140
Content-Type: 'application/json'
138141
ppl:

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ teardown:
2121
- skip:
2222
features:
2323
- headers
24+
- allowed_warnings
2425
- do:
2526
bulk:
2627
refresh: true
@@ -38,6 +39,8 @@ teardown:
3839
{"index": {"_index": "region_info"}}
3940
{"regionId": "2", "regionName": "us-west-2"}'
4041
- do:
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'
4144
headers:
4245
Content-Type: 'application/json'
4346
ppl:

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ teardown:
2727
- skip:
2828
features:
2929
- headers
30+
- allowed_warnings
3031
- do:
3132
bulk:
3233
refresh: true
@@ -37,6 +38,8 @@ teardown:
3738
{"regionId": "2", "action": "file_upload", "timestamp": "2024-04-29T10:05:00Z"}'
3839

3940
- do:
41+
allowed_warnings:
42+
- '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'
4043
headers:
4144
Content-Type: 'application/json'
4245
ppl:

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ teardown:
2020
- skip:
2121
features:
2222
- headers
23+
- allowed_warnings
2324
- do:
2425
bulk:
2526
index: test
@@ -28,6 +29,8 @@ teardown:
2829
- '{"index": {}}'
2930
- '{"log": {"url": {"message": "/e2e/h/zap"} } }'
3031
- do:
32+
allowed_warnings:
33+
- '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'
3134
headers:
3235
Content-Type: 'application/json'
3336
ppl:

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ teardown:
4848
- skip:
4949
features:
5050
- headers
51+
- allowed_warnings
5152
- do:
5253
bulk:
5354
index: test
@@ -57,6 +58,8 @@ teardown:
5758
- '{"log": {"url": {"message": "/e2e/h/zap", "time": 1} } }'
5859

5960
- do:
61+
allowed_warnings:
62+
- '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'
6063
headers:
6164
Content-Type: 'application/json'
6265
ppl:

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ setup:
22
- skip:
33
features:
44
- headers
5+
- allowed_warnings
56
- do:
67
indices.create:
78
index: test
@@ -77,6 +78,8 @@ teardown:
7778
- match: {"datarows": [["This is a match_only_text field 1"]]}
7879

7980
- do:
81+
allowed_warnings:
82+
- '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'
8083
headers:
8184
Content-Type: 'application/json'
8285
ppl:

0 commit comments

Comments
 (0)