@@ -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" ,
@@ -135,7 +136,7 @@ class TestNested:
135
136
},
136
137
))
137
138
def test_install (self , vm_booted_with_installer , system_disks_names ,
138
- firmware , iso_version , package_source , system_disk_config , local_sr , admin_iface ):
139
+ firmware , iso_version , install_iface , package_source , system_disk_config , local_sr , admin_iface ):
139
140
host_vm = vm_booted_with_installer
140
141
installer .monitor_install (ip = host_vm .ip )
141
142
@@ -145,6 +146,7 @@ def test_install(self, vm_booted_with_installer, system_disks_names,
145
146
@pytest .mark .parametrize ("package_source" , ("iso" , "net" ))
146
147
@pytest .mark .parametrize ("system_disk_config" , ("disk" , "raid1" ))
147
148
@pytest .mark .parametrize ("machine" , ("host1" , "host2" ))
149
+ @pytest .mark .parametrize ("install_iface" , ("ipv4dhcp" , "ipv6dhcp" ))
148
150
@pytest .mark .parametrize ("version" , (
149
151
"83nightly" , "830net" ,
150
152
"830" ,
@@ -157,12 +159,12 @@ def test_install(self, vm_booted_with_installer, system_disks_names,
157
159
))
158
160
@pytest .mark .parametrize ("firmware" , ("uefi" , "bios" ))
159
161
@pytest .mark .continuation_of (
160
- lambda version , firmware , local_sr , admin_iface , package_source , system_disk_config : [dict (
162
+ lambda version , firmware , install_iface , local_sr , admin_iface , package_source , system_disk_config : [dict (
161
163
vm = "vm1" ,
162
- image_test = (f"TestNested::test_install[{ firmware } -{ version } -{ system_disk_config } "
164
+ image_test = (f"TestNested::test_install[{ firmware } -{ version } -{ install_iface } - { system_disk_config } "
163
165
f"-{ package_source } -{ local_sr } -{ admin_iface } ]" ))])
164
166
def test_tune_firstboot (self , create_vms , helper_vm_with_plugged_disk ,
165
- firmware , version , machine , local_sr , admin_iface , package_source , system_disk_config ):
167
+ firmware , version , install_iface , machine , local_sr , admin_iface , package_source , system_disk_config ):
166
168
helper_vm = helper_vm_with_plugged_disk
167
169
168
170
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" )
@@ -401,6 +404,7 @@ def test_boot_inst(self, create_vms,
401
404
@pytest .mark .parametrize ("package_source" , ("iso" , "net" ))
402
405
@pytest .mark .parametrize ("system_disk_config" , ("disk" , "raid1" ))
403
406
@pytest .mark .parametrize ("machine" , ("host1" , "host2" ))
407
+ @pytest .mark .parametrize ("install_iface" , ("ipv4dhcp" , "ipv6dhcp" ))
404
408
@pytest .mark .parametrize (("orig_version" , "iso_version" ), [
405
409
("83nightly" , "83nightly" ),
406
410
("830" , "83nightly" ),
@@ -416,9 +420,9 @@ def test_boot_inst(self, create_vms,
416
420
])
417
421
@pytest .mark .parametrize ("firmware" , ("uefi" , "bios" ))
418
422
@pytest .mark .continuation_of (
419
- lambda firmware , orig_version , machine , system_disk_config , package_source , local_sr , admin_iface : [dict (
423
+ lambda firmware , orig_version , install_iface , machine , system_disk_config , package_source , local_sr , admin_iface : [dict (
420
424
vm = "vm1" ,
421
- image_test = (f"TestNested::test_boot_inst[{ firmware } -{ orig_version } -{ machine } -{ system_disk_config } "
425
+ image_test = (f"TestNested::test_boot_inst[{ firmware } -{ orig_version } -{ install_iface } - { machine } -{ system_disk_config } "
422
426
f"-{ package_source } -{ local_sr } -{ admin_iface } ]" ))])
423
427
@pytest .mark .answerfile (
424
428
lambda system_disks_names , package_source , system_disk_config , iso_version :
@@ -433,7 +437,7 @@ def test_boot_inst(self, create_vms,
433
437
}[system_disk_config ]},
434
438
))
435
439
def test_upgrade (self , vm_booted_with_installer , system_disks_names ,
436
- firmware , orig_version , iso_version , machine , package_source ,
440
+ firmware , orig_version , iso_version , install_iface , machine , package_source ,
437
441
system_disk_config , local_sr , admin_iface ):
438
442
host_vm = vm_booted_with_installer
439
443
installer .monitor_upgrade (ip = host_vm .ip )
@@ -444,6 +448,7 @@ def test_upgrade(self, vm_booted_with_installer, system_disks_names,
444
448
@pytest .mark .parametrize ("package_source" , ("iso" , "net" ))
445
449
@pytest .mark .parametrize ("system_disk_config" , ("disk" , "raid1" ))
446
450
@pytest .mark .parametrize ("machine" , ("host1" , "host2" ))
451
+ @pytest .mark .parametrize ("install_iface" , ("ipv4dhcp" , "ipv6dhcp" ))
447
452
@pytest .mark .parametrize ("mode" , (
448
453
"83nightly-83nightly" ,
449
454
"830-83nightly" ,
@@ -459,19 +464,20 @@ def test_upgrade(self, vm_booted_with_installer, system_disks_names,
459
464
))
460
465
@pytest .mark .parametrize ("firmware" , ("uefi" , "bios" ))
461
466
@pytest .mark .continuation_of (
462
- lambda firmware , mode , machine , system_disk_config , package_source , local_sr , admin_iface : [dict (
467
+ lambda firmware , mode , install_iface , machine , system_disk_config , package_source , local_sr , admin_iface : [dict (
463
468
vm = "vm1" ,
464
- image_test = (f"TestNested::test_upgrade[{ firmware } -{ mode } -{ machine } -{ system_disk_config } "
469
+ image_test = (f"TestNested::test_upgrade[{ firmware } -{ mode } -{ install_iface } - { machine } -{ system_disk_config } "
465
470
f"-{ package_source } -{ local_sr } -{ admin_iface } ]" ))])
466
471
def test_boot_upg (self , create_vms ,
467
- firmware , mode , machine , package_source , system_disk_config , local_sr , admin_iface ):
472
+ firmware , mode , install_iface , machine , package_source , system_disk_config , local_sr , admin_iface ):
468
473
self ._test_firstboot (create_vms , mode , admin_iface , machine = machine )
469
474
470
475
@pytest .mark .usefixtures ("xcpng_chained" )
471
476
@pytest .mark .parametrize ("admin_iface" , ("ipv4dhcp" , "ipv4static" , "ipv6static" ))
472
477
@pytest .mark .parametrize ("local_sr" , ("nosr" , "ext" , "lvm" ))
473
478
@pytest .mark .parametrize ("package_source" , ("iso" , "net" ))
474
479
@pytest .mark .parametrize ("system_disk_config" , ("disk" , "raid1" ))
480
+ @pytest .mark .parametrize ("install_iface" , ("ipv4dhcp" , "ipv6dhcp" ))
475
481
@pytest .mark .parametrize (("orig_version" , "iso_version" ), [
476
482
("83nightly-83nightly" , "83nightly" ),
477
483
("830-83nightly" , "83nightly" ),
@@ -487,9 +493,9 @@ def test_boot_upg(self, create_vms,
487
493
])
488
494
@pytest .mark .parametrize ("firmware" , ("uefi" , "bios" ))
489
495
@pytest .mark .continuation_of (
490
- lambda firmware , orig_version , local_sr , admin_iface , system_disk_config , package_source : [dict (
496
+ lambda firmware , orig_version , install_iface , local_sr , admin_iface , system_disk_config , package_source : [dict (
491
497
vm = "vm1" ,
492
- image_test = (f"TestNested::test_boot_upg[{ firmware } -{ orig_version } -host1-{ system_disk_config } "
498
+ image_test = (f"TestNested::test_boot_upg[{ firmware } -{ orig_version } -{ install_iface } - host1-{ system_disk_config } "
493
499
f"-{ package_source } -{ local_sr } -{ admin_iface } ]" ))])
494
500
@pytest .mark .answerfile (
495
501
lambda system_disks_names , system_disk_config : AnswerFile ("RESTORE" ).top_append (
@@ -499,7 +505,7 @@ def test_boot_upg(self, create_vms,
499
505
}[system_disk_config ]},
500
506
))
501
507
def test_restore (self , vm_booted_with_installer , system_disks_names ,
502
- firmware , orig_version , iso_version , package_source ,
508
+ firmware , orig_version , iso_version , install_iface , package_source ,
503
509
system_disk_config , local_sr , admin_iface ):
504
510
host_vm = vm_booted_with_installer
505
511
installer .monitor_restore (ip = host_vm .ip )
@@ -509,6 +515,7 @@ def test_restore(self, vm_booted_with_installer, system_disks_names,
509
515
@pytest .mark .parametrize ("local_sr" , ("nosr" , "ext" , "lvm" ))
510
516
@pytest .mark .parametrize ("package_source" , ("iso" , "net" ))
511
517
@pytest .mark .parametrize ("system_disk_config" , ("disk" , "raid1" ))
518
+ @pytest .mark .parametrize ("install_iface" , ("ipv4dhcp" , "ipv6dhcp" ))
512
519
@pytest .mark .parametrize ("mode" , (
513
520
"83nightly-83nightly-83nightly" ,
514
521
"830-83nightly-83nightly" ,
@@ -524,10 +531,10 @@ def test_restore(self, vm_booted_with_installer, system_disks_names,
524
531
))
525
532
@pytest .mark .parametrize ("firmware" , ("uefi" , "bios" ))
526
533
@pytest .mark .continuation_of (
527
- lambda firmware , mode , system_disk_config , package_source , local_sr , admin_iface : [dict (
534
+ lambda firmware , mode , install_iface , system_disk_config , package_source , local_sr , admin_iface : [dict (
528
535
vm = "vm1" ,
529
- image_test = (f"TestNested::test_restore[{ firmware } -{ mode } -{ system_disk_config } "
536
+ image_test = (f"TestNested::test_restore[{ firmware } -{ mode } -{ install_iface } - { system_disk_config } "
530
537
f"-{ package_source } -{ local_sr } -{ admin_iface } ]" ))])
531
538
def test_boot_rst (self , create_vms ,
532
- firmware , mode , package_source , system_disk_config , local_sr , admin_iface ):
539
+ firmware , mode , install_iface , package_source , system_disk_config , local_sr , admin_iface ):
533
540
self ._test_firstboot (create_vms , mode , admin_iface , is_restore = True )
0 commit comments