Skip to content

Commit

Permalink
[ML-DataFrame] Adjust BWC tests following backport (#45325)
Browse files Browse the repository at this point in the history
This change adjusts the changes of #45276 to account
for the backport to the 7.x branch in #45324.
  • Loading branch information
droberts195 authored Aug 8, 2019
1 parent c57f6be commit 3e621a8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 72 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
---
"Test put batch data frame transforms on mixed cluster":
- skip:
version: "7.4.0 - "
reason: waiting backport of https://github.com/elastic/elasticsearch/pull/45276
- do:
cluster.health:
index: "dataframe-transform-airline-data"
Expand Down Expand Up @@ -32,10 +29,7 @@
transform_id: "mixed-simple-transform"
- match: { count: 1 }
- match: { transforms.0.id: "mixed-simple-transform" }
# Since we are breaking the stats format between 7.3 and 7.4 (allowed because we're beta) we cannot
# assert on state in the mixed cluster as it could be state at the top level or state.task_state
# TODO: uncomment this assertion in master
#- match: { transforms.0.state: "/started|indexing|stopping|stopped/" }
- match: { transforms.0.state: "/started|indexing|stopping|stopped/" }

- do:
data_frame.stop_data_frame_transform:
Expand All @@ -48,10 +42,7 @@
transform_id: "mixed-simple-transform"
- match: { count: 1 }
- match: { transforms.0.id: "mixed-simple-transform" }
# Since we are breaking the stats format between 7.3 and 7.4 (allowed because we're beta) we cannot
# assert on state in the mixed cluster as it could be state at the top level or state.task_state
# TODO: uncomment this assertion in master
#- match: { transforms.0.state: "stopped" }
- match: { transforms.0.state: "stopped" }

- do:
data_frame.put_data_frame_transform:
Expand Down Expand Up @@ -98,10 +89,7 @@
transform_id: "mixed-complex-transform"
- match: { count: 1 }
- match: { transforms.0.id: "mixed-complex-transform" }
# Since we are breaking the stats format between 7.3 and 7.4 (allowed because we're beta) we cannot
# assert on state in the mixed cluster as it could be state at the top level or state.task_state
# TODO: uncomment this assertion in master
#- match: { transforms.0.state: "/started|indexing|stopping|stopped/" }
- match: { transforms.0.state: "/started|indexing|stopping|stopped/" }

- do:
data_frame.stop_data_frame_transform:
Expand All @@ -114,16 +102,10 @@
transform_id: "mixed-complex-transform"
- match: { count: 1 }
- match: { transforms.0.id: "mixed-complex-transform" }
# Since we are breaking the stats format between 7.3 and 7.4 (allowed because we're beta) we cannot
# assert on state in the mixed cluster as it could be state at the top level or state.task_state
# TODO: uncomment this assertion in master
#- match: { transforms.0.state: "stopped" }
- match: { transforms.0.state: "stopped" }

---
"Test put continuous data frame transform on mixed cluster":
- skip:
version: "7.4.0 - "
reason: waiting backport of https://github.com/elastic/elasticsearch/pull/45276
- do:
cluster.health:
index: "dataframe-transform-airline-data-cont"
Expand Down Expand Up @@ -169,10 +151,7 @@
transform_id: "mixed-simple-continuous-transform"
- match: { count: 1 }
- match: { transforms.0.id: "mixed-simple-continuous-transform" }
# Since we are breaking the stats format between 7.3 and 7.4 (allowed because we're beta) we cannot
# assert on state in the mixed cluster as it could be state at the top level or state.task_state
# TODO: uncomment this assertion in master
#- match: { transforms.0.state: "/started|indexing/" }
- match: { transforms.0.state: "/started|indexing/" }

- do:
data_frame.stop_data_frame_transform:
Expand All @@ -185,16 +164,10 @@
transform_id: "mixed-simple-continuous-transform"
- match: { count: 1 }
- match: { transforms.0.id: "mixed-simple-continuous-transform" }
# Since we are breaking the stats format between 7.3 and 7.4 (allowed because we're beta) we cannot
# assert on state in the mixed cluster as it could be state at the top level or state.task_state
# TODO: uncomment this assertion in master
#- match: { transforms.0.state: "stopped" }
- match: { transforms.0.state: "stopped" }

---
"Test GET, start, and stop old cluster batch transforms":
- skip:
version: "7.4.0 - "
reason: waiting backport of https://github.com/elastic/elasticsearch/pull/45276
- do:
cluster.health:
index: "dataframe-transform-airline-data"
Expand All @@ -220,10 +193,7 @@
transform_id: "old-simple-transform"
- match: { count: 1 }
- match: { transforms.0.id: "old-simple-transform" }
# Since we are breaking the stats format between 7.3 and 7.4 (allowed because we're beta) we cannot
# assert on state in the mixed cluster as it could be state at the top level or state.task_state
# TODO: uncomment this assertion in master
#- match: { transforms.0.state: "/started|indexing|stopping|stopped/" }
- match: { transforms.0.state: "/started|indexing|stopping|stopped/" }

- do:
data_frame.stop_data_frame_transform:
Expand All @@ -235,10 +205,7 @@
transform_id: "old-simple-transform"
- match: { count: 1 }
- match: { transforms.0.id: "old-simple-transform" }
# Since we are breaking the stats format between 7.3 and 7.4 (allowed because we're beta) we cannot
# assert on state in the mixed cluster as it could be state at the top level or state.task_state
# TODO: uncomment this assertion in master
#- match: { transforms.0.state: "stopped" }
- match: { transforms.0.state: "stopped" }

- do:
data_frame.get_data_frame_transform:
Expand All @@ -262,10 +229,7 @@
transform_id: "old-complex-transform"
- match: { count: 1 }
- match: { transforms.0.id: "old-complex-transform" }
# Since we are breaking the stats format between 7.3 and 7.4 (allowed because we're beta) we cannot
# assert on state in the mixed cluster as it could be state at the top level or state.task_state
# TODO: uncomment this assertion in master
#- match: { transforms.0.state: "/started|indexing|stopping|stopped/" }
- match: { transforms.0.state: "/started|indexing|stopping|stopped/" }

- do:
data_frame.stop_data_frame_transform:
Expand All @@ -277,16 +241,10 @@
transform_id: "old-complex-transform"
- match: { count: 1 }
- match: { transforms.0.id: "old-complex-transform" }
# Since we are breaking the stats format between 7.3 and 7.4 (allowed because we're beta) we cannot
# assert on state in the mixed cluster as it could be state at the top level or state.task_state
# TODO: uncomment this assertion in master
#- match: { transforms.0.state: "stopped" }
- match: { transforms.0.state: "stopped" }

---
"Test GET, stop, start, old continuous transforms":
- skip:
version: "7.4.0 - "
reason: waiting backport of https://github.com/elastic/elasticsearch/pull/45276
- do:
cluster.health:
index: "dataframe-transform-airline-data-cont"
Expand All @@ -312,10 +270,7 @@
transform_id: "old-simple-continuous-transform"
- match: { count: 1 }
- match: { transforms.0.id: "old-simple-continuous-transform" }
# Since we are breaking the stats format between 7.3 and 7.4 (allowed because we're beta) we cannot
# assert on state in the mixed cluster as it could be state at the top level or state.task_state
# TODO: uncomment this assertion in master
#- match: { transforms.0.state: "/started|indexing/" }
- match: { transforms.0.state: "/started|indexing/" }

- do:
data_frame.stop_data_frame_transform:
Expand All @@ -328,7 +283,4 @@
transform_id: "old-simple-continuous-transform"
- match: { count: 1 }
- match: { transforms.0.id: "old-simple-continuous-transform" }
# Since we are breaking the stats format between 7.3 and 7.4 (allowed because we're beta) we cannot
# assert on state in the mixed cluster as it could be state at the top level or state.task_state
# TODO: uncomment this assertion in master
#- match: { transforms.0.state: "stopped" }
- match: { transforms.0.state: "stopped" }
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
---
"Test put batch data frame transforms on old cluster":
- skip:
version: "7.4.0 - "
reason: waiting backport of https://github.com/elastic/elasticsearch/pull/45276
- do:
indices.create:
index: dataframe-transform-airline-data
Expand Down Expand Up @@ -139,9 +136,6 @@

---
"Test put continuous data frame transform on old cluster":
- skip:
version: "7.4.0 - "
reason: waiting backport of https://github.com/elastic/elasticsearch/pull/45276
- do:
indices.create:
index: dataframe-transform-airline-data-cont
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ setup:
timeout: 70s
---
"Get start, stop, and delete old and mixed cluster batch data frame transforms":
- skip:
version: "7.4.0 - "
reason: waiting backport of https://github.com/elastic/elasticsearch/pull/45276
# Simple and complex OLD transforms
- do:
data_frame.get_data_frame_transform:
Expand Down Expand Up @@ -165,9 +162,6 @@ setup:

---
"Test GET, stop, delete, old and mixed continuous transforms":
- skip:
version: "7.4.0 - "
reason: waiting backport of https://github.com/elastic/elasticsearch/pull/45276
- do:
data_frame.get_data_frame_transform:
transform_id: "old-simple-continuous-transform"
Expand Down

0 comments on commit 3e621a8

Please sign in to comment.