From ca7cb6ad5e86836ab2b7404634f6809e1d3a15a0 Mon Sep 17 00:00:00 2001 From: Hendrik Muhs Date: Mon, 21 Oct 2019 14:17:27 +0200 Subject: [PATCH] [Transform] separate old and mixed rolling upgrade tests (#48275) separates rolling upgrade tests for transforms created on old and mixed clusters. --- .../80_data_frame_jobs_crud.yml | 28 ++++++++++++------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/x-pack/qa/rolling-upgrade/src/test/resources/rest-api-spec/test/upgraded_cluster/80_data_frame_jobs_crud.yml b/x-pack/qa/rolling-upgrade/src/test/resources/rest-api-spec/test/upgraded_cluster/80_data_frame_jobs_crud.yml index 6e0b3eb69a5b5..8e3b7f0ddee52 100644 --- a/x-pack/qa/rolling-upgrade/src/test/resources/rest-api-spec/test/upgraded_cluster/80_data_frame_jobs_crud.yml +++ b/x-pack/qa/rolling-upgrade/src/test/resources/rest-api-spec/test/upgraded_cluster/80_data_frame_jobs_crud.yml @@ -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: @@ -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: @@ -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" @@ -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"