mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-02 08:56:07 +00:00
feat(instances): a running VM can be cloned
libvirt's backup copies the disks of a running or paused VM from one instant into new volumes while it keeps running; the clone is defined shut off as before. The VM is held for the copy, the copy can be cancelled, and recovery reads the job's records and libvirt.
This commit is contained in:
parent
39ad472a7c
commit
46a611941e
10 changed files with 653 additions and 19 deletions
|
|
@ -73,6 +73,13 @@ class JobsPageTestCase(TransactionTestCase):
|
|||
self.assertNotContains(response, "<script>x</script>")
|
||||
self.assertContains(response, "Waiting for recovery")
|
||||
|
||||
def test_the_detail_shows_the_results_warning_escaped(self):
|
||||
Operation.objects.filter(pk=self.op.pk).update(result={"warning": "not <b>thawed</b>"},
|
||||
state=Operation.SUCCEEDED)
|
||||
self.client.force_login(self.user)
|
||||
response = self.client.get(reverse("operations:job", args=[self.op.pk]))
|
||||
self.assertContains(response, "not <b>thawed</b>")
|
||||
|
||||
def test_pagination_keeps_the_filters(self):
|
||||
for i in range(51):
|
||||
Operation.objects.create(kind="test.noop", user=self.user, username="page_user",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue