@@ -47,6 +47,7 @@ class TestNested:
47
47
@pytest .mark .parametrize ("local_sr" , ("nosr" , "ext" , "lvm" ))
48
48
@pytest .mark .parametrize ("package_source" , ("iso" , "net" ))
49
49
@pytest .mark .parametrize ("system_disk_config" , ("disk" , "raid1" ))
50
+ @pytest .mark .parametrize ("install_iface" , ("ipv4dhcp" , "ipv6dhcp" ))
50
51
@pytest .mark .parametrize ("iso_version" , (
51
52
"83nightly" , "830net" ,
52
53
"830" ,
@@ -136,7 +137,7 @@ class TestNested:
136
137
else ValueError (f"system_disk_config { system_disk_config !r} " ),
137
138
))
138
139
def test_install (self , vm_booted_with_installer , system_disks_names ,
139
- firmware , iso_version , package_source , system_disk_config , local_sr , admin_iface ):
140
+ firmware , iso_version , install_iface , package_source , system_disk_config , local_sr , admin_iface ):
140
141
host_vm = vm_booted_with_installer
141
142
installer .monitor_install (ip = host_vm .ip )
142
143
@@ -146,6 +147,7 @@ def test_install(self, vm_booted_with_installer, system_disks_names,
146
147
@pytest .mark .parametrize ("package_source" , ("iso" , "net" ))
147
148
@pytest .mark .parametrize ("system_disk_config" , ("disk" , "raid1" ))
148
149
@pytest .mark .parametrize ("machine" , ("host1" , "host2" ))
150
+ @pytest .mark .parametrize ("install_iface" , ("ipv4dhcp" , "ipv6dhcp" ))
149
151
@pytest .mark .parametrize ("version" , (
150
152
"83nightly" , "830net" ,
151
153
"830" ,
@@ -158,12 +160,12 @@ def test_install(self, vm_booted_with_installer, system_disks_names,
158
160
))
159
161
@pytest .mark .parametrize ("firmware" , ("uefi" , "bios" ))
160
162
@pytest .mark .continuation_of (
161
- lambda version , firmware , local_sr , admin_iface , package_source , system_disk_config : [dict (
163
+ lambda version , firmware , install_iface , local_sr , admin_iface , package_source , system_disk_config : [dict (
162
164
vm = "vm1" ,
163
- image_test = (f"TestNested::test_install[{ firmware } -{ version } -{ system_disk_config } "
165
+ image_test = (f"TestNested::test_install[{ firmware } -{ version } -{ install_iface } - { system_disk_config } "
164
166
f"-{ package_source } -{ local_sr } -{ admin_iface } ]" ))])
165
167
def test_tune_firstboot (self , create_vms , helper_vm_with_plugged_disk ,
166
- firmware , version , machine , local_sr , admin_iface , package_source , system_disk_config ):
168
+ firmware , version , install_iface , machine , local_sr , admin_iface , package_source , system_disk_config ):
167
169
helper_vm = helper_vm_with_plugged_disk
168
170
169
171
if system_disk_config == "disk" :
@@ -374,6 +376,7 @@ def _test_firstboot(self, create_vms, mode, admin_iface, *, machine='DEFAULT', i
374
376
@pytest .mark .parametrize ("package_source" , ("iso" , "net" ))
375
377
@pytest .mark .parametrize ("system_disk_config" , ("disk" , "raid1" ))
376
378
@pytest .mark .parametrize ("machine" , ("host1" , "host2" ))
379
+ @pytest .mark .parametrize ("install_iface" , ("ipv4dhcp" , "ipv6dhcp" ))
377
380
@pytest .mark .parametrize ("version" , (
378
381
"83nightly" , "830net" ,
379
382
"830" ,
@@ -386,13 +389,13 @@ def _test_firstboot(self, create_vms, mode, admin_iface, *, machine='DEFAULT', i
386
389
))
387
390
@pytest .mark .parametrize ("firmware" , ("uefi" , "bios" ))
388
391
@pytest .mark .continuation_of (
389
- lambda firmware , version , machine , local_sr , admin_iface , package_source , system_disk_config : [
392
+ lambda firmware , version , install_iface , machine , local_sr , admin_iface , package_source , system_disk_config : [
390
393
dict (vm = "vm1" ,
391
394
image_test = ("TestNested::test_tune_firstboot"
392
- f"[None-{ firmware } -{ version } -{ machine } -{ system_disk_config } "
395
+ f"[None-{ firmware } -{ version } -{ install_iface } - { machine } -{ system_disk_config } "
393
396
f"-{ package_source } -{ local_sr } -{ admin_iface } ]" ))])
394
397
def test_boot_inst (self , create_vms ,
395
- firmware , version , machine , package_source , system_disk_config , local_sr , admin_iface ):
398
+ firmware , version , install_iface , machine , package_source , system_disk_config , local_sr , admin_iface ):
396
399
self ._test_firstboot (create_vms , version , admin_iface , machine = machine )
397
400
398
401
@pytest .mark .usefixtures ("xcpng_chained" )
0 commit comments