Skip to content

Commit 2024751

Browse files
committed
Fix test bwc issue
1 parent d456759 commit 2024751

File tree

15 files changed

+67
-28
lines changed

15 files changed

+67
-28
lines changed

rest-api-spec/src/main/resources/rest-api-spec/api/bulk.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,6 @@
3737
"type" : "string",
3838
"description" : "Default document type for items which don't provide one"
3939
},
40-
"fields": {
41-
"type": "list",
42-
"description" : "Default comma-separated list of fields to return in the response for updates, can be overridden on each sub-request"
43-
},
4440
"_source": {
4541
"type" : "list",
4642
"description" : "True or false to return the _source field or not, or default list of fields to return, can be overridden on each sub-request"

rest-api-spec/src/main/resources/rest-api-spec/api/update.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,6 @@
2727
"type": "string",
2828
"description": "Sets the number of shard copies that must be active before proceeding with the update operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1)"
2929
},
30-
"fields": {
31-
"type": "list",
32-
"description": "A comma-separated list of fields to return in the response"
33-
},
3430
"_source": {
3531
"type" : "list",
3632
"description" : "True or false to return the _source field or not, or a list of fields to return"

rest-api-spec/src/main/resources/rest-api-spec/test/bulk/40_source.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
---
22
"Source filtering":
3+
- skip:
4+
version: " - 6.99.99"
5+
reason: fields dropped in 7.0
6+
37
- do:
48
index:
59
refresh: true

rest-api-spec/src/main/resources/rest-api-spec/test/update/11_shard_header.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
---
22
"Update check shard header":
3+
- skip:
4+
version: " - 6.99.99"
5+
reason: fields dropped in 7.0
36

47
- do:
58
indices.create:

rest-api-spec/src/main/resources/rest-api-spec/test/update/12_result.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
---
22
"Update result field":
3+
- skip:
4+
version: " - 6.99.99"
5+
reason: fields dropped in 7.0
36

47
- do:
58
update:

rest-api-spec/src/main/resources/rest-api-spec/test/update/20_doc_upsert.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
---
22
"Doc upsert":
3+
- skip:
4+
version: " - 6.99.99"
5+
reason: fields dropped in 7.0
36

47
- do:
58
update:

rest-api-spec/src/main/resources/rest-api-spec/test/update/22_doc_as_upsert.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
---
22
"Doc as upsert":
3+
- skip:
4+
version: " - 6.99.99"
5+
reason: fields dropped in 7.0
36

47
- do:
58
update:

rest-api-spec/src/main/resources/rest-api-spec/test/update/30_internal_version.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
---
22
"Internal version":
3+
- skip:
4+
version: " - 6.99.99"
5+
reason: fields dropped in 7.0
36

4-
- do:
7+
- do:
58
catch: missing
69
update:
710
index: test_1
@@ -11,15 +14,15 @@
1114
body:
1215
doc: { foo: baz }
1316

14-
- do:
17+
- do:
1518
index:
1619
index: test_1
1720
type: test
1821
id: 1
1922
body:
2023
doc: { foo: baz }
2124

22-
- do:
25+
- do:
2326
catch: conflict
2427
update:
2528
index: test_1

rest-api-spec/src/main/resources/rest-api-spec/test/update/40_routing.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
---
22
"Routing":
3+
- skip:
4+
version: " - 6.99.99"
5+
reason: fields dropped in 7.0
36

47
- do:
58
indices.create:

rest-api-spec/src/main/resources/rest-api-spec/test/update/50_parent.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,11 @@ setup:
99
_parent: { type: "foo" }
1010
---
1111
"Parent":
12+
- skip:
13+
version: " - 6.99.99"
14+
reason: fields dropped in 7.0
1215

13-
- do:
16+
- do:
1417
catch: /routing_missing_exception/
1518
update:
1619
index: test_1
@@ -20,7 +23,7 @@ setup:
2023
doc: { foo: baz }
2124
upsert: { foo: bar }
2225

23-
- do:
26+
- do:
2427
update:
2528
index: test_1
2629
type: test
@@ -30,18 +33,18 @@ setup:
3033
doc: { foo: baz }
3134
upsert: { foo: bar }
3235

33-
- do:
36+
- do:
3437
get:
3538
index: test_1
3639
type: test
3740
id: 1
3841
parent: 5
3942
stored_fields: [_parent, _routing]
4043

41-
- match: { _parent: "5"}
42-
- match: { _routing: "5"}
44+
- match: { _parent: "5"}
45+
- match: { _routing: "5"}
4346

44-
- do:
47+
- do:
4548
update:
4649
index: test_1
4750
type: test
@@ -51,7 +54,7 @@ setup:
5154
body:
5255
doc: { foo: baz }
5356

54-
- match: { get._source.foo: baz }
57+
- match: { get._source.foo: baz }
5558

5659
---
5760
"Parent omitted":

0 commit comments

Comments
 (0)