From 39cd4b714be734e8bee76827b9d06210a5093c38 Mon Sep 17 00:00:00 2001 From: Houkime <> Date: Wed, 14 Jun 2023 12:35:41 +0000 Subject: [PATCH] test(backups): check snapshots getting created --- tests/test_graphql/test_api_backup.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_graphql/test_api_backup.py b/tests/test_graphql/test_api_backup.py index 2f11077..4c13398 100644 --- a/tests/test_graphql/test_api_backup.py +++ b/tests/test_graphql/test_api_backup.py @@ -78,4 +78,9 @@ def test_start_backup(authorized_client, dummy_service): response = api_backup(authorized_client, dummy_service) assert response["data"]["startBackup"]["success"] is True job = response["data"]["startBackup"]["job"] + assert Jobs.get_job(job["uid"]).status == JobStatus.FINISHED + snaps = api_snapshots(authorized_client) + assert len(snaps) == 1 + snap = snaps[0] + assert snap["service"]["id"] == "testservice"