mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-02 08:56:07 +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.
This commit is contained in:
parent
0a96ac155e
commit
b251741a27
1 changed files with 2 additions and 1 deletions
|
|
@ -147,7 +147,8 @@ class LiveJobsTestCase(TransactionTestCase):
|
||||||
self.assertTrue(livetest.volume_exists(self.conn, f"{livetest.POOL_PATH}/{P}smoke-copy.qcow2"))
|
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, {
|
op = self.run_job(jobs.submit("instance.create", self.admin, {
|
||||||
"name": P + "smoke-new", "firmware": "BIOS", "vcpu": 1, "vcpu_mode": "host-model", "memory": 256,
|
"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,
|
"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",
|
"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",
|
"video": "vga", "listener_addr": "127.0.0.1", "compute": self.compute.pk, "arch": "x86_64",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue