Skip to content

Commit 548bcf1

Browse files
committed
install 6/n: set params for VMs
1 parent 537ef37 commit 548bcf1

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

conftest.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,11 @@ def create_vms(request, host):
411411
for vif_def in marker["vifs"]:
412412
vm.create_vif(vif_def["index"], vif_def["network_uuid"])
413413

414+
if "params" in marker:
415+
for param_def in marker["params"]:
416+
logging.info("Setting param %s", param_def)
417+
vm.param_set(**param_def)
418+
414419
yield vms
415420

416421
except Exception:

tests/install/test_install.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@ class TestInstallNested:
55
@pytest.mark.vm_definitions(
66
dict(name="vm 1",
77
template="Other install media",
8+
params=(
9+
# dict(param_name="", value=""),
10+
dict(param_name="memory-static-max", value="4GiB"),
11+
dict(param_name="memory-dynamic-max", value="4GiB"),
12+
dict(param_name="memory-dynamic-min", value="4GiB"),
13+
dict(param_name="platform", key="exp-nested-hvm", value="true"), # FIXME < 8.3 host?
14+
dict(param_name="HVM-boot-params", key="firmware", value="uefi"),
15+
dict(param_name="HVM-boot-params", key="order", value="dc"),
16+
dict(param_name="platform", key="device-model", value="qemu-upstream-uefi"),
17+
),
818
vdis=[dict(name="vm 1 system disk", size="100GiB", device="xvda", userdevice="0")],
919
vifs=[dict(index=0, network_uuid="eabc1038-e40f-2ae5-0781-a3adbec1cae8")], # FIXME
1020
))

0 commit comments

Comments
 (0)