Skip to content

Commit 569084d

Browse files
committed
install 6/n: set params for VMs
1 parent d6390e4 commit 569084d

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
@@ -404,6 +404,11 @@ def create_vms(request, host):
404404
for vif_def in marker["vifs"]:
405405
vm.create_vif(vif_def["index"], vif_def["network_uuid"])
406406

407+
if "params" in marker:
408+
for param_def in marker["params"]:
409+
logging.info("Setting param %s", param_def)
410+
vm.param_set(**param_def)
411+
407412
yield vms
408413

409414
except Exception:

tests/install/test.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@ class TestNested:
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)