Skip to content

Commit da77b97

Browse files
authored
[ML Data Frame] Account for completed data frames in test (#42351)
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 #42309
1 parent c9d04cc commit da77b97

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

x-pack/plugin/src/test/resources/rest-api-spec/test/data_frame/transforms_stats.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,14 @@ teardown:
4242

4343
---
4444
"Test get transform stats":
45-
- skip:
46-
version: "all"
47-
reason: "AwaitsFix https://github.com/elastic/elasticsearch/issues/42309"
4845
- do:
4946
data_frame.get_data_frame_transform_stats:
5047
transform_id: "airline-transform-stats"
5148
- match: { count: 1 }
5249
- match: { transforms.0.id: "airline-transform-stats" }
5350
- match: { transforms.0.state.indexer_state: "/started|indexing/" }
5451
- match: { transforms.0.state.task_state: "started" }
55-
- match: { transforms.0.state.checkpoint: 0 }
52+
- lte: { transforms.0.state.checkpoint: 1 }
5653
- lte: { transforms.0.stats.pages_processed: 1 }
5754
- match: { transforms.0.stats.documents_processed: 0 }
5855
- match: { transforms.0.stats.documents_indexed: 0 }
@@ -149,9 +146,6 @@ teardown:
149146

150147
---
151148
"Test get multiple transform stats where one does not have a task":
152-
- skip:
153-
version: "all"
154-
reason: "AwaitsFix https://github.com/elastic/elasticsearch/issues/42309"
155149
- do:
156150
data_frame.put_data_frame_transform:
157151
transform_id: "airline-transform-stats-dos"
@@ -169,7 +163,7 @@ teardown:
169163
transform_id: "*"
170164
- match: { count: 2 }
171165
- match: { transforms.0.id: "airline-transform-stats" }
172-
- match: { transforms.0.state.indexer_state: "started" }
166+
- match: { transforms.0.state.indexer_state: "/started|indexing/" }
173167
- match: { transforms.1.id: "airline-transform-stats-dos" }
174168
- match: { transforms.1.state.indexer_state: "stopped" }
175169

0 commit comments

Comments
 (0)