From 516bd727ad7d2c4d77cb8177b5ad46ba480ddb85 Mon Sep 17 00:00:00 2001 From: Hendrik Muhs Date: Fri, 18 Oct 2019 14:24:44 +0200 Subject: [PATCH] remove tests on mixed cluster due to gh#48019, which rules out a valid upgrade combination --- .../mixed_cluster/80_data_frame_jobs_crud.yml | 206 +----------------- 1 file changed, 1 insertion(+), 205 deletions(-) diff --git a/x-pack/qa/rolling-upgrade/src/test/resources/rest-api-spec/test/mixed_cluster/80_data_frame_jobs_crud.yml b/x-pack/qa/rolling-upgrade/src/test/resources/rest-api-spec/test/mixed_cluster/80_data_frame_jobs_crud.yml index 86a1e6a8daa88..c034398ac9a45 100644 --- a/x-pack/qa/rolling-upgrade/src/test/resources/rest-api-spec/test/mixed_cluster/80_data_frame_jobs_crud.yml +++ b/x-pack/qa/rolling-upgrade/src/test/resources/rest-api-spec/test/mixed_cluster/80_data_frame_jobs_crud.yml @@ -1,205 +1 @@ ---- -"Test put batch data frame transforms on mixed cluster": - - do: - cluster.health: - index: "dataframe-transform-airline-data" - wait_for_status: green - timeout: 70s - - - do: - data_frame.put_data_frame_transform: - transform_id: "mixed-simple-transform" - body: > - { - "source": { "index": "dataframe-transform-airline-data" }, - "dest": { "index": "mixed-simple-transform-idx" }, - "pivot": { - "group_by": { "airline": {"terms": {"field": "airline"}}}, - "aggs": {"avg_response": {"avg": {"field": "responsetime"}}} - } - } - - match: { acknowledged: true } - - - do: - data_frame.start_data_frame_transform: - transform_id: "mixed-simple-transform" - - match: { acknowledged: true } - - do: - data_frame.get_data_frame_transform_stats: - 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/" } - - - do: - data_frame.stop_data_frame_transform: - transform_id: "mixed-simple-transform" - wait_for_completion: true - - match: { acknowledged: true } - - - do: - data_frame.get_data_frame_transform_stats: - 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" } - - - do: - data_frame.put_data_frame_transform: - transform_id: "mixed-complex-transform" - body: > - { - "source": { - "index": "dataframe-transform-airline-data", - "query": { - "bool": { - "filter": {"term": {"airline": "ElasticAir"}} - } - } - }, - "dest": { - "index": "mixed-complex-transform-idx" - }, - "pivot": { - "group_by": { - "airline": {"terms": {"field": "airline"}}, - "day": {"date_histogram": {"field": "timestamp", "calendar_interval": "1d"}}, - "every_50": {"histogram": {"field": "responsetime", "interval": 50}} - }, - "aggs": {"avg_response": {"avg": {"field": "responsetime"}}} - } - } - - match: { acknowledged: true } - - - do: - data_frame.get_data_frame_transform: - transform_id: "mixed-complex-transform" - - match: { count: 1 } - - match: { transforms.0.id: "mixed-complex-transform" } - - - do: - data_frame.start_data_frame_transform: - transform_id: "mixed-complex-transform" - - match: { acknowledged: true } - - do: - data_frame.get_data_frame_transform_stats: - 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/" } - - - do: - data_frame.stop_data_frame_transform: - transform_id: "mixed-complex-transform" - wait_for_completion: true - - match: { acknowledged: true } - - - do: - data_frame.get_data_frame_transform_stats: - 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" } - ---- -"Test GET, start, and stop old cluster batch transforms": - - skip: - reason: "https://github.com/elastic/elasticsearch/issues/44808" - version: "all" - - do: - cluster.health: - index: "dataframe-transform-airline-data" - wait_for_status: green - timeout: 70s - - - do: - data_frame.get_data_frame_transform: - transform_id: "old-simple-transform" - - match: { count: 1 } - - match: { transforms.0.id: "old-simple-transform" } - - match: { transforms.0.source.index.0: "dataframe-transform-airline-data" } - - match: { transforms.0.dest.index: "old-simple-transform-idx" } - - match: { transforms.0.pivot.group_by.airline.terms.field: "airline" } - - match: { transforms.0.pivot.aggregations.avg_response.avg.field: "responsetime" } - - - do: - data_frame.start_data_frame_transform: - transform_id: "old-simple-transform" - - match: { acknowledged: true } - - do: - data_frame.get_data_frame_transform_stats: - 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/" } - - - do: - data_frame.stop_data_frame_transform: - transform_id: "old-simple-transform" - wait_for_completion: true - - match: { acknowledged: true } - - do: - data_frame.get_data_frame_transform_stats: - 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" } - - - do: - data_frame.get_data_frame_transform: - transform_id: "old-complex-transform" - - match: { count: 1 } - - match: { transforms.0.id: "old-complex-transform" } - - match: { transforms.0.source.index.0: "dataframe-transform-airline-data" } - - match: { transforms.0.dest.index: "old-complex-transform-idx" } - - match: { transforms.0.pivot.group_by.airline.terms.field: "airline" } - - match: { transforms.0.pivot.group_by.day.date_histogram.field: "timestamp" } - - match: { transforms.0.pivot.group_by.every_50.histogram.field: "responsetime" } - - match: { transforms.0.pivot.aggregations.avg_response.avg.field: "responsetime" } - - - do: - data_frame.start_data_frame_transform: - transform_id: "old-complex-transform" - - match: { acknowledged: true } - - do: - data_frame.get_data_frame_transform_stats: - 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/" } - - - do: - data_frame.stop_data_frame_transform: - transform_id: "old-complex-transform" - wait_for_completion: true - - match: { acknowledged: true } - - do: - data_frame.get_data_frame_transform_stats: - 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" } +// transform in mixed cluster is effectively disabled till 7.4, therefore tests are removed, see gh#48019