Skip to content

Commit 5dd6bd6

Browse files
author
Hendrik Muhs
authored
do not assert on state in mixed cluster due to endpoint differences (#47898)
do not assert on state in mixed cluster due to endpoint differences between 7.3 and 7.4 regression #46452 fixes #47693
1 parent 0c439fe commit 5dd6bd6

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

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

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,9 @@
156156
transform_id: "mixed-simple-continuous-transform"
157157
- match: { count: 1 }
158158
- match: { transforms.0.id: "mixed-simple-continuous-transform" }
159-
- match: { transforms.0.state: "/started|indexing/" }
159+
# Since we are breaking the stats format between 7.3 and 7.4 (allowed because we're beta) we cannot
160+
# assert on state in the mixed cluster as it could be state at the top level or state.task_state
161+
#- match: { transforms.0.state: "/started|indexing/" }
160162

161163
- do:
162164
data_frame_transform_deprecated.stop_transform:
@@ -169,7 +171,9 @@
169171
transform_id: "mixed-simple-continuous-transform"
170172
- match: { count: 1 }
171173
- match: { transforms.0.id: "mixed-simple-continuous-transform" }
172-
- match: { transforms.0.state: "stopped" }
174+
# Since we are breaking the stats format between 7.3 and 7.4 (allowed because we're beta) we cannot
175+
# assert on state in the mixed cluster as it could be state at the top level or state.task_state
176+
#- match: { transforms.0.state: "stopped" }
173177

174178
---
175179
"Test GET, start, and stop old cluster batch transforms":
@@ -282,7 +286,9 @@
282286
transform_id: "old-simple-continuous-transform"
283287
- match: { count: 1 }
284288
- match: { transforms.0.id: "old-simple-continuous-transform" }
285-
- match: { transforms.0.state: "/started|indexing/" }
289+
# Since we are breaking the stats format between 7.3 and 7.4 (allowed because we're beta) we cannot
290+
# assert on state in the mixed cluster as it could be state at the top level or state.task_state
291+
#- match: { transforms.0.state: "/started|indexing/" }
286292

287293
- do:
288294
data_frame_transform_deprecated.stop_transform:
@@ -295,4 +301,6 @@
295301
transform_id: "old-simple-continuous-transform"
296302
- match: { count: 1 }
297303
- match: { transforms.0.id: "old-simple-continuous-transform" }
298-
- match: { transforms.0.state: "stopped" }
304+
# Since we are breaking the stats format between 7.3 and 7.4 (allowed because we're beta) we cannot
305+
# assert on state in the mixed cluster as it could be state at the top level or state.task_state
306+
#- match: { transforms.0.state: "stopped" }

0 commit comments

Comments
 (0)