1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-11 12:46:49 +00:00

test(instances): the live create-from-template job names the template's pool

Since 8f09812b a new VM's template is taken from the pool the form names
(template_pool). That change updated the live view test but not the live
job test, which left template_pool out: the create job looked the
template up in a pool named '' and failed, on live runs only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Kk4h2TcUiaWmU5MUszYSea
This commit is contained in:
catborise 2026-11-10 16:39:42 +03:00
parent 7a888bc32e
commit 65bd5da471

View file

@ -147,7 +147,8 @@ class LiveJobsTestCase(TransactionTestCase):
self.assertTrue(livetest.volume_exists(self.conn, f"{livetest.POOL_PATH}/{P}smoke-copy.qcow2"))
op = self.run_job(jobs.submit("instance.create", self.admin, {
"name": P + "smoke-new", "firmware": "BIOS", "vcpu": 1, "vcpu_mode": "host-model", "memory": 256,
"networks": "default", "storage": livetest.POOL, "template": P + "smoke-copy.qcow2", "images": "",
"networks": "default", "storage": livetest.POOL, "template": P + "smoke-copy.qcow2",
"template_pool": livetest.POOL, "images": "",
"hdd_size": 0, "cache_mode": "none", "meta_prealloc": False, "virtio": True, "qemu_ga": False,
"mac": "", "nwfilter": "", "net_model": "virtio", "add_cdrom": "None", "add_input": "default",
"video": "vga", "listener_addr": "127.0.0.1", "compute": self.compute.pk, "arch": "x86_64",