From cd426c67f301d14aa1bad78881679a97b64adc84 Mon Sep 17 00:00:00 2001 From: Armin Braun Date: Mon, 20 Jul 2020 18:26:05 +0200 Subject: [PATCH] Fix Snapshot Status API Docs Test (#59902) The clock resolution for this API is our default 200ms. It is unlikely but possible that a shard snapshot starts and ends on separate clock ticks and that breaks the test. Just allowing any value here seems fine to me (seems we can't match for integer specifically). --- .../snapshot-restore/apis/get-snapshot-status-api.asciidoc | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/reference/snapshot-restore/apis/get-snapshot-status-api.asciidoc b/docs/reference/snapshot-restore/apis/get-snapshot-status-api.asciidoc index aa7250e0e49d6..90977c7479ed1 100644 --- a/docs/reference/snapshot-restore/apis/get-snapshot-status-api.asciidoc +++ b/docs/reference/snapshot-restore/apis/get-snapshot-status-api.asciidoc @@ -389,6 +389,7 @@ GET /_snapshot/my_repository/snapshot_2/_status // TESTRESPONSE[s/"total" : 10/"total" : $body.snapshots.0.shards_stats.total/] // TESTRESPONSE[s/"start_time_in_millis" : 1594829326691/"start_time_in_millis" : $body.snapshots.0.stats.start_time_in_millis/] // TESTRESPONSE[s/"time_in_millis" : 205/"time_in_millis" : $body.snapshots.0.stats.time_in_millis/] +// TESTRESPONSE[s/"time_in_millis" : 0/"time_in_millis" : $body.$_path/] // TESTRESPONSE[s/"file_count" : 3/"file_count" : $body.snapshots.0.stats.incremental.file_count/] // TESTRESPONSE[s/"file_count" : 4/"file_count" : $body.snapshots.0.stats.total.file_count/] // TESTRESPONSE[s/"size_in_bytes" : 5969/"size_in_bytes" : $body.snapshots.0.stats.incremental.size_in_bytes/]