Skip to content

Commit b987130

Browse files
committed
install: add XS/CH support
1 parent 6e7f7d1 commit b987130

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

tests/install/test.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
@pytest.mark.dependency()
1212
class TestNested:
1313
@pytest.mark.parametrize("iso_version", (
14+
"ch821.1", "xs8",
1415
"821.1", "83b2",
1516
))
1617
@pytest.mark.parametrize("firmware", ("uefi", "bios"))
@@ -39,6 +40,8 @@ class TestNested:
3940
lambda version: {
4041
"821.1": "xcpng-8.2.1-2023",
4142
"83b2": "xcpng-8.3-beta2",
43+
"ch821.1": "ch-8.2.1-23",
44+
"xs8": "xs8-2024-03",
4245
}[version],
4346
param_mapping={"version": "iso_version"})
4447
@pytest.mark.answerfile(lambda firmware: {
@@ -131,8 +134,11 @@ def test_install(self, request, firmware, iso_remaster, create_vms, iso_version)
131134
#"83b2-83b2", # 8.3b2 disabled the upgrade from 8.3
132135
"821.1-83b2",
133136
"821.1-83b2-83b2",
137+
"ch821.1-83b2",
138+
"ch821.1-83b2-83b2",
134139
"821.1",
135140
"821.1-821.1",
141+
"ch821.1", "xs8",
136142
))
137143
@pytest.mark.parametrize("firmware", ("uefi", "bios"))
138144
@pytest.mark.continuation_of(lambda params, firmware: [dict(
@@ -152,7 +158,12 @@ def test_firstboot(self, firmware, request, create_vms, mode):
152158
logging.info("Host VM has MAC %s", mac_address)
153159

154160
# determine version info from `mode`
155-
expected_dist = "XCP-ng"
161+
if mode.startswith("xs"):
162+
expected_dist = "XenServer"
163+
elif mode.startswith("ch"):
164+
expected_dist = "CitrixHypervisor"
165+
else:
166+
expected_dist = "XCP-ng"
156167
# succession of insta/upg/rst operations
157168
split_mode = mode.split("-")
158169
if len(split_mode) == 3:
@@ -161,6 +172,8 @@ def test_firstboot(self, firmware, request, create_vms, mode):
161172
else:
162173
expected_rel_id = split_mode[-1]
163174
expected_rel = {
175+
"ch821.1": "8.2.1",
176+
"xs8": "8.4.0",
164177
"821.1": "8.2.1",
165178
"83b2": "8.3.0",
166179
}[expected_rel_id]
@@ -264,6 +277,7 @@ def test_firstboot(self, firmware, request, create_vms, mode):
264277
@pytest.mark.usefixtures("xcpng_chained")
265278
@pytest.mark.parametrize(("orig_version", "iso_version"), [
266279
("821.1", "821.1"),
280+
("ch821.1", "83b2"),
267281
("821.1", "83b2"),
268282
#("83b2", "83b2"), # 8.3b2 disabled the upgrade from 8.3
269283
])
@@ -366,6 +380,7 @@ def test_upgrade(self, firmware, iso_remaster, create_vms, orig_version, iso_ver
366380
@pytest.mark.usefixtures("xcpng_chained")
367381
@pytest.mark.parametrize(("orig_version", "iso_version"), [
368382
("821.1-83b2", "83b2"),
383+
("ch821.1-83b2", "83b2"),
369384
])
370385
@pytest.mark.parametrize("firmware", ("uefi", "bios"))
371386
@pytest.mark.continuation_of(lambda firmware, params: [dict(

0 commit comments

Comments
 (0)