Skip to content

Commit 5ec249c

Browse files
committed
Fix the rolling upgrade tests.
1 parent a3ae02d commit 5ec249c

File tree

2 files changed

+25
-29
lines changed

2 files changed

+25
-29
lines changed

qa/rolling-upgrade/src/test/resources/rest-api-spec/test/old_cluster/10_basic.yml

Lines changed: 24 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@
2525
bulk:
2626
refresh: true
2727
body:
28-
- '{"index": {"_index": "test_search_template", "_type": "doc"}}'
28+
- '{"index": {"_index": "test_search_template"}}'
2929
- '{"f1": "v1_old"}'
30-
- '{"index": {"_index": "test_search_template", "_type": "doc"}}'
30+
- '{"index": {"_index": "test_search_template"}}'
3131
- '{"f1": "v2_old"}'
32-
- '{"index": {"_index": "test_search_template", "_type": "doc"}}'
32+
- '{"index": {"_index": "test_search_template"}}'
3333
- '{"f1": "v3_old"}'
34-
- '{"index": {"_index": "test_search_template", "_type": "doc"}}'
34+
- '{"index": {"_index": "test_search_template"}}'
3535
- '{"f1": "v4_old"}'
36-
- '{"index": {"_index": "test_search_template", "_type": "doc"}}'
36+
- '{"index": {"_index": "test_search_template"}}'
3737
- '{"f1": "v5_old"}'
3838

3939
- do:
@@ -65,21 +65,19 @@
6565
index: queries
6666
body:
6767
mappings:
68-
doc:
69-
properties:
70-
query:
71-
type: percolator
72-
field1:
73-
type: keyword
74-
field2:
75-
type: keyword
76-
field3:
77-
type: keyword
68+
properties:
69+
query:
70+
type: percolator
71+
field1:
72+
type: keyword
73+
field2:
74+
type: keyword
75+
field3:
76+
type: keyword
7877

7978
- do:
8079
index:
8180
index: queries
82-
type: doc
8381
id: q1
8482
body:
8583
query:
@@ -89,7 +87,6 @@
8987
- do:
9088
index:
9189
index: queries
92-
type: doc
9390
id: q2
9491
body:
9592
query:
@@ -103,7 +100,6 @@
103100
- do:
104101
index:
105102
index: queries
106-
type: doc
107103
id: q3
108104
body:
109105
query:
@@ -176,15 +172,15 @@
176172
bulk:
177173
refresh: true
178174
body:
179-
- '{"index": {"_index": "reindexed_index", "_type": "doc"}}'
175+
- '{"index": {"_index": "reindexed_index"}}'
180176
- '{"f1": "1"}'
181-
- '{"index": {"_index": "reindexed_index", "_type": "doc"}}'
177+
- '{"index": {"_index": "reindexed_index"}}'
182178
- '{"f1": "2"}'
183-
- '{"index": {"_index": "reindexed_index", "_type": "doc"}}'
179+
- '{"index": {"_index": "reindexed_index"}}'
184180
- '{"f1": "3"}'
185-
- '{"index": {"_index": "reindexed_index", "_type": "doc"}}'
181+
- '{"index": {"_index": "reindexed_index"}}'
186182
- '{"f1": "4"}'
187-
- '{"index": {"_index": "reindexed_index", "_type": "doc"}}'
183+
- '{"index": {"_index": "reindexed_index"}}'
188184
- '{"f1": "5"}'
189185

190186
- do:
@@ -215,9 +211,8 @@
215211
index: all-index
216212
body:
217213
mappings:
218-
type:
219-
_all:
220-
enabled: false
221-
properties:
222-
field:
223-
type: text
214+
_all:
215+
enabled: false
216+
properties:
217+
field:
218+
type: text

qa/rolling-upgrade/src/test/resources/rest-api-spec/test/upgraded_cluster/10_basic.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@
134134

135135
- do:
136136
indices.get_mapping:
137+
include_type_name: false
137138
index: all-index
138139

139140
- is_true: all-index.mappings._all

0 commit comments

Comments
 (0)