Skip to content

Commit 3618694

Browse files
author
Hendrik Muhs
committed
adapt bwc tests
1 parent 868e4e6 commit 3618694

File tree

3 files changed

+109
-109
lines changed

3 files changed

+109
-109
lines changed

x-pack/qa/rolling-upgrade/src/test/resources/rest-api-spec/test/mixed_cluster/80_data_frame_jobs_crud.yml

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
"Test put batch data frame transforms on mixed cluster":
33
- do:
44
cluster.health:
5-
index: "dataframe-transform-airline-data"
5+
index: "transform-airline-data"
66
wait_for_status: green
77
timeout: 70s
88

99
- do:
10-
data_frame.put_data_frame_transform:
10+
transform.put_transform:
1111
transform_id: "mixed-simple-transform"
1212
body: >
1313
{
14-
"source": { "index": "dataframe-transform-airline-data" },
14+
"source": { "index": "transform-airline-data" },
1515
"dest": { "index": "mixed-simple-transform-idx" },
1616
"pivot": {
1717
"group_by": { "airline": {"terms": {"field": "airline"}}},
@@ -21,36 +21,36 @@
2121
- match: { acknowledged: true }
2222

2323
- do:
24-
data_frame.start_data_frame_transform:
24+
transform.start_transform:
2525
transform_id: "mixed-simple-transform"
2626
- match: { acknowledged: true }
2727
- do:
28-
data_frame.get_data_frame_transform_stats:
28+
transform.get_transform_stats:
2929
transform_id: "mixed-simple-transform"
3030
- match: { count: 1 }
3131
- match: { transforms.0.id: "mixed-simple-transform" }
3232
- match: { transforms.0.state: "/started|indexing|stopping|stopped/" }
3333

3434
- do:
35-
data_frame.stop_data_frame_transform:
35+
transform.stop_transform:
3636
transform_id: "mixed-simple-transform"
3737
wait_for_completion: true
3838
- match: { acknowledged: true }
3939

4040
- do:
41-
data_frame.get_data_frame_transform_stats:
41+
transform.get_transform_stats:
4242
transform_id: "mixed-simple-transform"
4343
- match: { count: 1 }
4444
- match: { transforms.0.id: "mixed-simple-transform" }
4545
- match: { transforms.0.state: "stopped" }
4646

4747
- do:
48-
data_frame.put_data_frame_transform:
48+
transform.put_transform:
4949
transform_id: "mixed-complex-transform"
5050
body: >
5151
{
5252
"source": {
53-
"index": "dataframe-transform-airline-data",
53+
"index": "transform-airline-data",
5454
"query": {
5555
"bool": {
5656
"filter": {"term": {"airline": "ElasticAir"}}
@@ -73,32 +73,32 @@
7373
- match: { acknowledged: true }
7474

7575
- do:
76-
data_frame.get_data_frame_transform:
76+
transform.get_transform:
7777
transform_id: "mixed-complex-transform"
7878
- match: { count: 1 }
7979
- match: { transforms.0.id: "mixed-complex-transform" }
8080
- is_true: transforms.0.version
8181
- is_true: transforms.0.create_time
8282

8383
- do:
84-
data_frame.start_data_frame_transform:
84+
transform.start_transform:
8585
transform_id: "mixed-complex-transform"
8686
- match: { acknowledged: true }
8787
- do:
88-
data_frame.get_data_frame_transform_stats:
88+
transform.get_transform_stats:
8989
transform_id: "mixed-complex-transform"
9090
- match: { count: 1 }
9191
- match: { transforms.0.id: "mixed-complex-transform" }
9292
- match: { transforms.0.state: "/started|indexing|stopping|stopped/" }
9393

9494
- do:
95-
data_frame.stop_data_frame_transform:
95+
transform.stop_transform:
9696
transform_id: "mixed-complex-transform"
9797
wait_for_completion: true
9898
- match: { acknowledged: true }
9999

100100
- do:
101-
data_frame.get_data_frame_transform_stats:
101+
transform.get_transform_stats:
102102
transform_id: "mixed-complex-transform"
103103
- match: { count: 1 }
104104
- match: { transforms.0.id: "mixed-complex-transform" }
@@ -108,16 +108,16 @@
108108
"Test put continuous data frame transform on mixed cluster":
109109
- do:
110110
cluster.health:
111-
index: "dataframe-transform-airline-data-cont"
111+
index: "transform-airline-data-cont"
112112
wait_for_status: green
113113
timeout: 70s
114114

115115
- do:
116-
data_frame.put_data_frame_transform:
116+
transform.put_transform:
117117
transform_id: "mixed-simple-continuous-transform"
118118
body: >
119119
{
120-
"source": { "index": "dataframe-transform-airline-data-cont" },
120+
"source": { "index": "transform-airline-data-cont" },
121121
"dest": { "index": "mixed-simple-continuous-transform-idx" },
122122
"pivot": {
123123
"group_by": { "airline": {"terms": {"field": "airline"}}},
@@ -133,7 +133,7 @@
133133
- match: { acknowledged: true }
134134

135135
- do:
136-
data_frame.get_data_frame_transform:
136+
transform.get_transform:
137137
transform_id: "mixed-simple-continuous-transform"
138138
- match: { count: 1 }
139139
- match: { transforms.0.id: "mixed-simple-continuous-transform" }
@@ -143,24 +143,24 @@
143143
- is_true: transforms.0.create_time
144144

145145
- do:
146-
data_frame.start_data_frame_transform:
146+
transform.start_transform:
147147
transform_id: "mixed-simple-continuous-transform"
148148
- match: { acknowledged: true }
149149
- do:
150-
data_frame.get_data_frame_transform_stats:
150+
transform.get_transform_stats:
151151
transform_id: "mixed-simple-continuous-transform"
152152
- match: { count: 1 }
153153
- match: { transforms.0.id: "mixed-simple-continuous-transform" }
154154
- match: { transforms.0.state: "/started|indexing/" }
155155

156156
- do:
157-
data_frame.stop_data_frame_transform:
157+
transform.stop_transform:
158158
transform_id: "mixed-simple-continuous-transform"
159159
wait_for_completion: true
160160
- match: { acknowledged: true }
161161

162162
- do:
163-
data_frame.get_data_frame_transform_stats:
163+
transform.get_transform_stats:
164164
transform_id: "mixed-simple-continuous-transform"
165165
- match: { count: 1 }
166166
- match: { transforms.0.id: "mixed-simple-continuous-transform" }
@@ -170,49 +170,49 @@
170170
"Test GET, start, and stop old cluster batch transforms":
171171
- do:
172172
cluster.health:
173-
index: "dataframe-transform-airline-data"
173+
index: "transform-airline-data"
174174
wait_for_status: green
175175
timeout: 70s
176176

177177
- do:
178-
data_frame.get_data_frame_transform:
178+
transform.get_transform:
179179
transform_id: "old-simple-transform"
180180
- match: { count: 1 }
181181
- match: { transforms.0.id: "old-simple-transform" }
182-
- match: { transforms.0.source.index.0: "dataframe-transform-airline-data" }
182+
- match: { transforms.0.source.index.0: "transform-airline-data" }
183183
- match: { transforms.0.dest.index: "old-simple-transform-idx" }
184184
- match: { transforms.0.pivot.group_by.airline.terms.field: "airline" }
185185
- match: { transforms.0.pivot.aggregations.avg_response.avg.field: "responsetime" }
186186

187187
- do:
188-
data_frame.start_data_frame_transform:
188+
transform.start_transform:
189189
transform_id: "old-simple-transform"
190190
- match: { acknowledged: true }
191191
- do:
192-
data_frame.get_data_frame_transform_stats:
192+
transform.get_transform_stats:
193193
transform_id: "old-simple-transform"
194194
- match: { count: 1 }
195195
- match: { transforms.0.id: "old-simple-transform" }
196196
- match: { transforms.0.state: "/started|indexing|stopping|stopped/" }
197197

198198
- do:
199-
data_frame.stop_data_frame_transform:
199+
transform.stop_transform:
200200
transform_id: "old-simple-transform"
201201
wait_for_completion: true
202202
- match: { acknowledged: true }
203203
- do:
204-
data_frame.get_data_frame_transform_stats:
204+
transform.get_transform_stats:
205205
transform_id: "old-simple-transform"
206206
- match: { count: 1 }
207207
- match: { transforms.0.id: "old-simple-transform" }
208208
- match: { transforms.0.state: "stopped" }
209209

210210
- do:
211-
data_frame.get_data_frame_transform:
211+
transform.get_transform:
212212
transform_id: "old-complex-transform"
213213
- match: { count: 1 }
214214
- match: { transforms.0.id: "old-complex-transform" }
215-
- match: { transforms.0.source.index.0: "dataframe-transform-airline-data" }
215+
- match: { transforms.0.source.index.0: "transform-airline-data" }
216216
- match: { transforms.0.dest.index: "old-complex-transform-idx" }
217217
- match: { transforms.0.dest.pipeline: "data_frame_simple_pipeline" }
218218
- match: { transforms.0.pivot.group_by.airline.terms.field: "airline" }
@@ -221,23 +221,23 @@
221221
- match: { transforms.0.pivot.aggregations.avg_response.avg.field: "responsetime" }
222222

223223
- do:
224-
data_frame.start_data_frame_transform:
224+
transform.start_transform:
225225
transform_id: "old-complex-transform"
226226
- match: { acknowledged: true }
227227
- do:
228-
data_frame.get_data_frame_transform_stats:
228+
transform.get_transform_stats:
229229
transform_id: "old-complex-transform"
230230
- match: { count: 1 }
231231
- match: { transforms.0.id: "old-complex-transform" }
232232
- match: { transforms.0.state: "/started|indexing|stopping|stopped/" }
233233

234234
- do:
235-
data_frame.stop_data_frame_transform:
235+
transform.stop_transform:
236236
transform_id: "old-complex-transform"
237237
wait_for_completion: true
238238
- match: { acknowledged: true }
239239
- do:
240-
data_frame.get_data_frame_transform_stats:
240+
transform.get_transform_stats:
241241
transform_id: "old-complex-transform"
242242
- match: { count: 1 }
243243
- match: { transforms.0.id: "old-complex-transform" }
@@ -247,12 +247,12 @@
247247
"Test GET, stop, start, old continuous transforms":
248248
- do:
249249
cluster.health:
250-
index: "dataframe-transform-airline-data-cont"
250+
index: "transform-airline-data-cont"
251251
wait_for_status: green
252252
timeout: 70s
253253

254254
- do:
255-
data_frame.get_data_frame_transform:
255+
transform.get_transform:
256256
transform_id: "old-simple-continuous-transform"
257257
- match: { count: 1 }
258258
- match: { transforms.0.id: "old-simple-continuous-transform" }
@@ -262,24 +262,24 @@
262262
- is_true: transforms.0.create_time
263263

264264
- do:
265-
data_frame.start_data_frame_transform:
265+
transform.start_transform:
266266
transform_id: "old-simple-continuous-transform"
267267
- match: { acknowledged: true }
268268
- do:
269-
data_frame.get_data_frame_transform_stats:
269+
transform.get_transform_stats:
270270
transform_id: "old-simple-continuous-transform"
271271
- match: { count: 1 }
272272
- match: { transforms.0.id: "old-simple-continuous-transform" }
273273
- match: { transforms.0.state: "/started|indexing/" }
274274

275275
- do:
276-
data_frame.stop_data_frame_transform:
276+
transform.stop_transform:
277277
transform_id: "old-simple-continuous-transform"
278278
wait_for_completion: true
279279
- match: { acknowledged: true }
280280

281281
- do:
282-
data_frame.get_data_frame_transform_stats:
282+
transform.get_transform_stats:
283283
transform_id: "old-simple-continuous-transform"
284284
- match: { count: 1 }
285285
- match: { transforms.0.id: "old-simple-continuous-transform" }

0 commit comments

Comments
 (0)