mirror of
https://github.com/retspen/webvirtcloud
synced 2026-11-11 12:46:49 +00:00
fix: a queued job is shown once, in the job panel
Queuing a long operation put "... is being ...; follow it in the job panel." above the page, while the job panel on the same page showed the job and its progress. Every such form returns to a page with the job panel for the job's resource (the VM, the compute's VM list, the pool), and the panel shows a job even when it ends before its first poll. The eight messages are removed: migrate, clone, create, volume clone and the snapshot create, revert and delete jobs. Refusals stay messages.
This commit is contained in:
parent
7f8e5cd618
commit
d97ec5afd2
3 changed files with 8 additions and 18 deletions
|
|
@ -75,7 +75,7 @@ class SnapshotViewsTestCase(TestCase):
|
|||
op = Operation.objects.get()
|
||||
self.assertEqual((op.kind, op.state, op.params),
|
||||
("snapshot.delete", Operation.QUEUED, {"instance": self.instance.id, "name": "a"}))
|
||||
self.assertTrue(any("being deleted" in m for m in messages), messages)
|
||||
self.assertEqual(messages, []) # the job panel shows it
|
||||
proxy.delete_external_snapshot.assert_not_called()
|
||||
|
||||
def test_a_refused_delete_becomes_a_message_and_queues_nothing(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue