Skip to content

Commit 029ea4a

Browse files
Convert 'routing' values in REST API tests to strings (#77249)
Co-authored-by: Elastic Machine <[email protected]> Co-authored-by: Elastic Machine <[email protected]>
1 parent 9f34099 commit 029ea4a

File tree

13 files changed

+31
-31
lines changed

13 files changed

+31
-31
lines changed

modules/parent-join/src/yamlRestTest/resources/rest-api-spec/test/11_parent_child.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ setup:
2020
index:
2121
index: test
2222
id: 2
23-
routing: 1
23+
routing: "1"
2424
body: {"bar": "baz", "join_field": { "name" : "child", "parent": "1"} }
2525

2626
- do:

modules/parent-join/src/yamlRestTest/resources/rest-api-spec/test/30_inner_hits.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ setup:
2525
index:
2626
index: test
2727
id: 2
28-
routing: 1
28+
routing: "1"
2929
body: { "join_field": { "name": "answer", "parent": 1} , "entity_type": "answer" }
3030

3131
- do:
@@ -37,7 +37,7 @@ setup:
3737
- do:
3838
index:
3939
index: test
40-
routing: 3
40+
routing: "3"
4141
id: 4
4242
body: { "join_field": { "name": "address", "parent": 3 }, "entity_type": "address" }
4343

modules/reindex/src/yamlRestTest/resources/rest-api-spec/test/reindex/95_parent_join.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ setup:
2525
index:
2626
index: source
2727
id: 2
28-
routing: 1
28+
routing: "1"
2929
body: { "join_field": { "name": "child", "parent": "1" } }
3030

3131
- do:
3232
index:
3333
index: source
3434
id: 3
35-
routing: 1
35+
routing: "1"
3636
body: { "join_field": { "name": "grand_child", "parent": "2" } }
3737

3838
- do:

rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/create/40_routing.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@
2121
create:
2222
index: test_1
2323
id: 1
24-
routing: 5
24+
routing: "5"
2525
body: { foo: bar }
2626

2727
- do:
2828
get:
2929
index: test_1
3030
id: 1
31-
routing: 5
31+
routing: "5"
3232
stored_fields: [_routing]
3333

3434
- match: { _id: "1"}

rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/delete/30_routing.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,19 @@
1515
index:
1616
index: test_1
1717
id: 1
18-
routing: 5
18+
routing: "5"
1919
body: { foo: bar }
2020

2121
- do:
2222
catch: missing
2323
delete:
2424
index: test_1
2525
id: 1
26-
routing: 4
26+
routing: "4"
2727

2828
- do:
2929
delete:
3030
index: test_1
3131
id: 1
32-
routing: 5
32+
routing: "5"
3333

rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/exists/40_routing.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@
2222
index:
2323
index: test_1
2424
id: 1
25-
routing: 5
25+
routing: "5"
2626
body: { foo: bar }
2727

2828
- do:
2929
exists:
3030
index: test_1
3131
id: 1
32-
routing: 5
32+
routing: "5"
3333

3434
- is_true: ''
3535

rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/get/40_routing.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@
2323
index:
2424
index: test_1
2525
id: 1
26-
routing: 5
26+
routing: "5"
2727
body: { foo: bar }
2828

2929
- do:
3030
get:
3131
index: test_1
3232
id: 1
33-
routing: 5
33+
routing: "5"
3434
stored_fields: [_routing]
3535

3636
- match: { _id: "1"}

rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/get_source/40_routing.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@
2424
index:
2525
index: test_1
2626
id: 1
27-
routing: 5
27+
routing: "5"
2828
body: { foo: bar }
2929

3030
- do:
3131
get_source:
3232
index: test_1
3333
id: 1
34-
routing: 5
34+
routing: "5"
3535

3636
- match: { '': {foo: bar}}
3737

rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/index/40_routing.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@
2222
index:
2323
index: test_1
2424
id: 1
25-
routing: 5
25+
routing: "5"
2626
body: { foo: bar }
2727

2828
- do:
2929
get:
3030
index: test_1
3131
id: 1
32-
routing: 5
32+
routing: "5"
3333
stored_fields: [_routing]
3434

3535
- match: { _id: "1"}

rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/indices.update_aliases/20_routing.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ setup:
125125
- add:
126126
index: test_index
127127
alias: test_alias
128-
routing: 5
128+
routing: "5"
129129

130130
- do:
131131
indices.get_alias:

0 commit comments

Comments
 (0)