Skip to content

Commit

Permalink
firstboot: move _upg and _rst tests to group them with upgrade and re…
Browse files Browse the repository at this point in the history
…store

Signed-off-by: Yann Dirson <[email protected]>
  • Loading branch information
ydirson committed Oct 10, 2024
1 parent 5c883a1 commit da0ae3e
Showing 1 changed file with 51 additions and 51 deletions.
102 changes: 51 additions & 51 deletions tests/install/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,57 +308,6 @@ def test_boot_inst(self, create_vms,
firmware, version, machine, package_source, local_sr):
self._test_firstboot(create_vms, version, machine=machine)

@pytest.mark.usefixtures("xcpng_chained")
@pytest.mark.parametrize("local_sr", ("nosr", "ext", "lvm"))
@pytest.mark.parametrize("package_source", ("iso", "net"))
@pytest.mark.parametrize("machine", ("host1", "host2"))
@pytest.mark.parametrize("mode", (
"83nightly-83nightly",
"83rc1-83nightly",
"83b2-83nightly",
"83b1-83nightly",
"821.1-83nightly",
"81-83nightly",
"80-83nightly",
"ch821.1-83nightly",
"xs8-83nightly",
"83rcnet-83rcnet",
"821.1-821.1",
))
@pytest.mark.parametrize("firmware", ("uefi", "bios"))
@pytest.mark.continuation_of(
lambda firmware, mode, machine, package_source, local_sr: [dict(
vm="vm1",
image_test=(f"TestNested::test_upgrade[{firmware}-{mode}-{machine}-{package_source}-{local_sr}]"))])
def test_boot_upg(self, create_vms,
firmware, mode, machine, package_source, local_sr):
self._test_firstboot(create_vms, mode, machine=machine)

@pytest.mark.usefixtures("xcpng_chained")
@pytest.mark.parametrize("local_sr", ("nosr", "ext", "lvm"))
@pytest.mark.parametrize("package_source", ("iso", "net"))
@pytest.mark.parametrize("mode", (
"83nightly-83nightly-83nightly",
"83rc1-83nightly-83nightly",
"83b2-83nightly-83nightly",
"83b1-83nightly-83nightly",
"821.1-83nightly-83nightly",
"81-83nightly-83nightly",
"80-83nightly-83nightly",
"ch821.1-83nightly-83nightly",
"xs8-83nightly-83nightly",
"83rcnet-83rcnet", "83rcnet-83rcnet-83rcnet", # FIXME
"821.1-821.1-821.1",
))
@pytest.mark.parametrize("firmware", ("uefi", "bios"))
@pytest.mark.continuation_of(
lambda firmware, mode, package_source, local_sr: [dict(
vm="vm1",
image_test=(f"TestNested::test_restore[{firmware}-{mode}-{package_source}-{local_sr}]"))])
def test_boot_rst(self, create_vms,
firmware, mode, package_source, local_sr):
self._test_firstboot(create_vms, mode)

@pytest.mark.usefixtures("xcpng_chained")
@pytest.mark.parametrize("local_sr", ("nosr", "ext", "lvm"))
@pytest.mark.parametrize("package_source", ("iso", "net"))
Expand Down Expand Up @@ -392,6 +341,32 @@ def test_upgrade(self, vm_booted_with_installer, install_disk,
host_vm = vm_booted_with_installer
installer.monitor_upgrade(ip=host_vm.ip)

@pytest.mark.usefixtures("xcpng_chained")
@pytest.mark.parametrize("local_sr", ("nosr", "ext", "lvm"))
@pytest.mark.parametrize("package_source", ("iso", "net"))
@pytest.mark.parametrize("machine", ("host1", "host2"))
@pytest.mark.parametrize("mode", (
"83nightly-83nightly",
"83rc1-83nightly",
"83b2-83nightly",
"83b1-83nightly",
"821.1-83nightly",
"81-83nightly",
"80-83nightly",
"ch821.1-83nightly",
"xs8-83nightly",
"83rcnet-83rcnet",
"821.1-821.1",
))
@pytest.mark.parametrize("firmware", ("uefi", "bios"))
@pytest.mark.continuation_of(
lambda firmware, mode, machine, package_source, local_sr: [dict(
vm="vm1",
image_test=(f"TestNested::test_upgrade[{firmware}-{mode}-{machine}-{package_source}-{local_sr}]"))])
def test_boot_upg(self, create_vms,
firmware, mode, machine, package_source, local_sr):
self._test_firstboot(create_vms, mode, machine=machine)

@pytest.mark.usefixtures("xcpng_chained")
@pytest.mark.parametrize("local_sr", ("nosr", "ext", "lvm"))
@pytest.mark.parametrize("package_source", ("iso", "net"))
Expand Down Expand Up @@ -422,3 +397,28 @@ def test_restore(self, vm_booted_with_installer, install_disk,
firmware, orig_version, iso_version, package_source, local_sr):
host_vm = vm_booted_with_installer
installer.monitor_restore(ip=host_vm.ip)

@pytest.mark.usefixtures("xcpng_chained")
@pytest.mark.parametrize("local_sr", ("nosr", "ext", "lvm"))
@pytest.mark.parametrize("package_source", ("iso", "net"))
@pytest.mark.parametrize("mode", (
"83nightly-83nightly-83nightly",
"83rc1-83nightly-83nightly",
"83b2-83nightly-83nightly",
"83b1-83nightly-83nightly",
"821.1-83nightly-83nightly",
"81-83nightly-83nightly",
"80-83nightly-83nightly",
"ch821.1-83nightly-83nightly",
"xs8-83nightly-83nightly",
"83rcnet-83rcnet", "83rcnet-83rcnet-83rcnet", # FIXME
"821.1-821.1-821.1",
))
@pytest.mark.parametrize("firmware", ("uefi", "bios"))
@pytest.mark.continuation_of(
lambda firmware, mode, package_source, local_sr: [dict(
vm="vm1",
image_test=(f"TestNested::test_restore[{firmware}-{mode}-{package_source}-{local_sr}]"))])
def test_boot_rst(self, create_vms,
firmware, mode, package_source, local_sr):
self._test_firstboot(create_vms, mode)

0 comments on commit da0ae3e

Please sign in to comment.