Skip to content

Commit

Permalink
[Transform] separate old and mixed rolling upgrade tests (elastic#48275)
Browse files Browse the repository at this point in the history
separates rolling upgrade tests for transforms created on old and mixed clusters.
  • Loading branch information
Hendrik Muhs authored Oct 21, 2019
1 parent 832ddb3 commit ca7cb6a
Showing 1 changed file with 18 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ setup:
# wait for long enough that we give delayed unassigned shards to stop being delayed
timeout: 70s
---
"Get start, stop, and delete old and mixed cluster batch data frame transforms":
"Get start, stop, and delete old cluster batch data frame transforms":
# Simple and complex OLD transforms
- do:
transform.get_transform:
Expand Down Expand Up @@ -75,7 +75,17 @@ setup:
- match: { count: 1 }
- match: { transforms.0.id: "old-complex-transform" }
- match: { transforms.0.state: "stopped" }
# Delete old transform
- do:
transform.delete_transform:
transform_id: "old-simple-transform"
- do:
transform.get_transform_stats:
transform_id: "old-simple-transform"
- match: { count: 0 }

---
"Get start, stop mixed cluster batch data frame transforms":
# Simple and complex Mixed cluster transforms
- do:
transform.get_transform:
Expand Down Expand Up @@ -145,23 +155,20 @@ setup:
- match: { count: 1 }
- match: { transforms.0.id: "mixed-complex-transform" }
- match: { transforms.0.state: "stopped" }

# Delete all old and mixed transforms
# Delete mixed transform
- do:
transform.delete_transform:
transform_id: "old-simple-transform"

transform_id: "mixed-simple-transform"
- do:
transform.delete_transform:
transform_id: "mixed-simple-transform"

transform_id: "mixed-complex-transform"
- do:
transform.get_transform_stats:
transform_id: "old-simple-transform,mixed-simple-transform"
transform_id: "mixed-simple-transform,mixed-complex-transform"
- match: { count: 0 }

---
"Test GET, stop, delete, old and mixed continuous transforms":
"Test GET, stop, delete, old continuous transforms":
- do:
transform.get_transform:
transform_id: "old-simple-continuous-transform"
Expand Down Expand Up @@ -206,7 +213,8 @@ setup:
- do:
transform.delete_transform:
transform_id: "old-simple-continuous-transform"

---
"Test GET, mixed continuous transforms":
- do:
transform.get_transform:
transform_id: "mixed-simple-continuous-transform"
Expand Down

0 comments on commit ca7cb6a

Please sign in to comment.