Skip to content

Commit

Permalink
[ML Data Frame] Account for completed data frames in test (elastic#42351
Browse files Browse the repository at this point in the history
)

When asserting on the checkpoint value if the DF has completed the checkpoint will be 1 else 0.
Similarly state may be started or indexing. Closes elastic#42309
  • Loading branch information
davidkyle authored and Gurkan Kaymak committed May 27, 2019
1 parent 2568abc commit 4166fd2
Showing 1 changed file with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,14 @@ teardown:

---
"Test get transform stats":
- skip:
version: "all"
reason: "AwaitsFix https://github.com/elastic/elasticsearch/issues/42309"
- do:
data_frame.get_data_frame_transform_stats:
transform_id: "airline-transform-stats"
- match: { count: 1 }
- match: { transforms.0.id: "airline-transform-stats" }
- match: { transforms.0.state.indexer_state: "/started|indexing/" }
- match: { transforms.0.state.task_state: "started" }
- match: { transforms.0.state.checkpoint: 0 }
- lte: { transforms.0.state.checkpoint: 1 }
- lte: { transforms.0.stats.pages_processed: 1 }
- match: { transforms.0.stats.documents_processed: 0 }
- match: { transforms.0.stats.documents_indexed: 0 }
Expand Down Expand Up @@ -149,9 +146,6 @@ teardown:

---
"Test get multiple transform stats where one does not have a task":
- skip:
version: "all"
reason: "AwaitsFix https://github.com/elastic/elasticsearch/issues/42309"
- do:
data_frame.put_data_frame_transform:
transform_id: "airline-transform-stats-dos"
Expand All @@ -169,7 +163,7 @@ teardown:
transform_id: "*"
- match: { count: 2 }
- match: { transforms.0.id: "airline-transform-stats" }
- match: { transforms.0.state.indexer_state: "started" }
- match: { transforms.0.state.indexer_state: "/started|indexing/" }
- match: { transforms.1.id: "airline-transform-stats-dos" }
- match: { transforms.1.state.indexer_state: "stopped" }

Expand Down

0 comments on commit 4166fd2

Please sign in to comment.