mirror of
https://github.com/retspen/webvirtcloud
synced 2026-11-11 12:46:49 +00:00
feat(instances): snapshot revert runs as a job
This commit is contained in:
parent
6f81043438
commit
8d2e88f4bb
7 changed files with 102 additions and 82 deletions
|
|
@ -521,15 +521,6 @@ class InstancesTestCase(TestCase):
|
|||
self.instance.__dict__.pop(cached, None)
|
||||
self.assertEqual(len(self.instance.snapshots), 1)
|
||||
|
||||
response = self.client.post(
|
||||
reverse("instances:revert_snapshot", args=[self.instance.id]),
|
||||
{
|
||||
"name": "test-snapshot",
|
||||
},
|
||||
HTTP_REFERER=reverse("index"),
|
||||
)
|
||||
self.assertEqual(response.status_code, 302)
|
||||
|
||||
response = self.client.post(
|
||||
reverse("instances:delete_snapshot", args=[self.instance.id]),
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue