Skip to content

Commit eaf4ac2

Browse files
Convert 'routing' values in REST API tests to strings
Co-authored-by: Elastic Machine <[email protected]>
1 parent 70a012b commit eaf4ac2

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
@@ -19,14 +19,14 @@
1919
create:
2020
index: test_1
2121
id: 1
22-
routing: 5
22+
routing: "5"
2323
body: { foo: bar }
2424

2525
- do:
2626
get:
2727
index: test_1
2828
id: 1
29-
routing: 5
29+
routing: "5"
3030
stored_fields: [_routing]
3131

3232
- 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
@@ -13,19 +13,19 @@
1313
index:
1414
index: test_1
1515
id: 1
16-
routing: 5
16+
routing: "5"
1717
body: { foo: bar }
1818

1919
- do:
2020
catch: missing
2121
delete:
2222
index: test_1
2323
id: 1
24-
routing: 4
24+
routing: "4"
2525

2626
- do:
2727
delete:
2828
index: test_1
2929
id: 1
30-
routing: 5
30+
routing: "5"
3131

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
@@ -20,14 +20,14 @@
2020
index:
2121
index: test_1
2222
id: 1
23-
routing: 5
23+
routing: "5"
2424
body: { foo: bar }
2525

2626
- do:
2727
exists:
2828
index: test_1
2929
id: 1
30-
routing: 5
30+
routing: "5"
3131

3232
- is_true: ''
3333

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
@@ -21,14 +21,14 @@
2121
index:
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/get_source/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_source:
3030
index: test_1
3131
id: 1
32-
routing: 5
32+
routing: "5"
3333

3434
- match: { '': {foo: bar}}
3535

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
@@ -20,14 +20,14 @@
2020
index:
2121
index: test_1
2222
id: 1
23-
routing: 5
23+
routing: "5"
2424
body: { foo: bar }
2525

2626
- do:
2727
get:
2828
index: test_1
2929
id: 1
30-
routing: 5
30+
routing: "5"
3131
stored_fields: [_routing]
3232

3333
- 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)