Skip to content

Commit d1b11d6

Browse files
committed
WIP install: add XS/CH support
1 parent fe500ad commit d1b11d6

File tree

1 file changed

+25
-5
lines changed

1 file changed

+25
-5
lines changed

tests/install/test.py

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,19 @@
1616

1717
@pytest.mark.dependency()
1818
class TestNested:
19-
@pytest.mark.parametrize("iso_version", ("821.1", "83b2"))
19+
@pytest.mark.parametrize("iso_version", (
20+
"ch821.1", "xs8",
21+
"821.1", "83b2",
22+
))
2023
@pytest.mark.parametrize("firmware", ("uefi", "bios"))
21-
@pytest.mark.installer_iso(lambda version: {"821.1": "xcpng-8.2.1-2023",
22-
"83b2": "xcpng-8.3-beta2"}[version],
23-
param_mapping={"version": "iso_version"})
24+
@pytest.mark.installer_iso(
25+
lambda version: {
26+
"821.1": "xcpng-8.2.1-2023",
27+
"83b2": "xcpng-8.3-beta2",
28+
"ch821.1": "ch-8.2.1-23",
29+
"xs8": "xs8-2024-03",
30+
}[version],
31+
param_mapping={"version": "iso_version"})
2432
@pytest.mark.vm_definitions(lambda firmware: dict(
2533
name="vm 1",
2634
template="Other install media",
@@ -136,12 +144,15 @@ def test_install(self, request, firmware, iso_version, iso_remaster, create_vms)
136144
@pytest.mark.usefixtures("xcpng_chained")
137145
# FIXME take "uefi" outa here and allow "bios"
138146
@pytest.mark.parametrize("mode", [
147+
"ch821.1", "xs8",
139148
"821.1",
140149
"821.1-821.1",
141150
"83b2",
142151
"821.1-83b2",
152+
"ch821.1-83b2",
143153
#"83b2-83b2", # 8.3b2 disabled the upgrade from 8.3
144154
"821.1-83b2-83b2",
155+
"ch821.1-83b2-83b2",
145156
])
146157
@pytest.mark.parametrize("firmware", ("uefi", "bios"))
147158
@pytest.mark.continuation_of(
@@ -161,7 +172,12 @@ def test_firstboot(self, firmware, request, create_vms, mode):
161172
logging.info("Host VM has MAC %s", mac_address)
162173

163174
# determine version info from `mode`
164-
expected_dist = "XCP-ng"
175+
if mode.startswith("xs"):
176+
expected_dist = "XenServer"
177+
elif mode.startswith("ch"):
178+
expected_dist = "CitrixHypervisor"
179+
else:
180+
expected_dist = "XCP-ng"
165181
# succession of insta/upg/rst operations
166182
split_mode = mode.split("-")
167183
if len(split_mode) == 3:
@@ -170,6 +186,8 @@ def test_firstboot(self, firmware, request, create_vms, mode):
170186
else:
171187
expected_rel_id = split_mode[-1]
172188
expected_rel = {
189+
"ch821.1": "8.2.1",
190+
"xs8": "8.4.0",
173191
"821.1": "8.2.1",
174192
"83b2": "8.3.0",
175193
}[expected_rel_id]
@@ -280,6 +298,7 @@ def test_firstboot(self, firmware, request, create_vms, mode):
280298
@pytest.mark.usefixtures("xcpng_chained")
281299
@pytest.mark.parametrize(("orig_version", "iso_version"), [
282300
("821.1", "821.1"),
301+
("ch821.1", "83b2"),
283302
("821.1", "83b2"),
284303
#("83b2", "83b2"), # 8.3b2 disabled the upgrade from 8.3
285304
])
@@ -387,6 +406,7 @@ def test_upgrade(self, request, firmware, orig_version, iso_version, iso_remaste
387406
@pytest.mark.usefixtures("xcpng_chained")
388407
@pytest.mark.parametrize(("orig_version", "iso_version"), [
389408
("821.1-83b2", "83b2"),
409+
("ch821.1-83b2", "83b2"),
390410
])
391411
@pytest.mark.parametrize("firmware", ("uefi", "bios"))
392412
@pytest.mark.continuation_of(

0 commit comments

Comments
 (0)