-
Notifications
You must be signed in to change notification settings - Fork 24.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove tests on mixed cluster due to gh#48019, which rules out a valid
upgrade combination
- Loading branch information
Hendrik Muhs
committed
Oct 18, 2019
1 parent
c92b20e
commit 516bd72
Showing
1 changed file
with
1 addition
and
205 deletions.
There are no files selected for viewing
206 changes: 1 addition & 205 deletions
206
...g-upgrade/src/test/resources/rest-api-spec/test/mixed_cluster/80_data_frame_jobs_crud.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |