Skip to content

Commit 499b927

Browse files
committed
install 7/n: set params for VMs
1 parent 879c0c3 commit 499b927

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

conftest.py

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

442+
if "params" in marker:
443+
for param_def in marker["params"]:
444+
logging.info("Setting param %s", param_def)
445+
vm.param_set(**param_def)
446+
442447
yield vms
443448

444449
except Exception:

tests/install/test_install.py

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

0 commit comments

Comments
 (0)