Skip to content

Commit a23257c

Browse files
committed
[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 c2c8d0e commit a23257c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ teardown:
4949
- match: { transforms.0.id: "airline-transform-stats" }
5050
- match: { transforms.0.state.indexer_state: "/started|indexing/" }
5151
- match: { transforms.0.state.task_state: "started" }
52-
- match: { transforms.0.state.checkpoint: 0 }
52+
- lte: { transforms.0.state.checkpoint: 1 }
5353
- lte: { transforms.0.stats.pages_processed: 1 }
5454
- match: { transforms.0.stats.documents_processed: 0 }
5555
- match: { transforms.0.stats.documents_indexed: 0 }
@@ -163,7 +163,7 @@ teardown:
163163
transform_id: "*"
164164
- match: { count: 2 }
165165
- match: { transforms.0.id: "airline-transform-stats" }
166-
- match: { transforms.0.state.indexer_state: "started" }
166+
- match: { transforms.0.state.indexer_state: "/started|indexing/" }
167167
- match: { transforms.1.id: "airline-transform-stats-dos" }
168168
- match: { transforms.1.state.indexer_state: "stopped" }
169169

0 commit comments

Comments
 (0)