mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-05 11:03:12 +00:00
test(backups): check snapshots getting created
This commit is contained in:
parent
92322d8fad
commit
39cd4b714b
|
@ -78,4 +78,9 @@ def test_start_backup(authorized_client, dummy_service):
|
||||||
response = api_backup(authorized_client, dummy_service)
|
response = api_backup(authorized_client, dummy_service)
|
||||||
assert response["data"]["startBackup"]["success"] is True
|
assert response["data"]["startBackup"]["success"] is True
|
||||||
job = response["data"]["startBackup"]["job"]
|
job = response["data"]["startBackup"]["job"]
|
||||||
|
|
||||||
assert Jobs.get_job(job["uid"]).status == JobStatus.FINISHED
|
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"
|
||||||
|
|
Loading…
Reference in a new issue