test(backups): check snapshots getting created

pull/35/head
Houkime 2023-06-14 12:35:41 +00:00
parent 92322d8fad
commit 39cd4b714b
1 changed files with 5 additions and 0 deletions

View File

@ -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"