Update the dump test to check for the dumpUid dumpCreation task details

This commit is contained in:
Kerollmops
2022-11-23 14:48:39 +01:00
parent 8443554b1f
commit 7093bae131
2 changed files with 6 additions and 5 deletions

View File

@ -983,7 +983,7 @@ async fn test_summarized_dump_creation() {
server.wait_task(0).await;
let (task, _) = server.get_task(0).await;
assert_json_snapshot!(task,
{ ".duration" => "[duration]", ".enqueuedAt" => "[date]", ".startedAt" => "[date]", ".finishedAt" => "[date]" },
{ ".details.dumpUid" => "[dumpUid]", ".duration" => "[duration]", ".enqueuedAt" => "[date]", ".startedAt" => "[date]", ".finishedAt" => "[date]" },
@r###"
{
"uid": 0,
@ -991,6 +991,9 @@ async fn test_summarized_dump_creation() {
"status": "succeeded",
"type": "dumpCreation",
"canceledBy": null,
"details": {
"dumpUid": "[dumpUid]"
},
"error": null,
"duration": "[duration]",
"enqueuedAt": "[date]",