Skip to content

Commit ef699b4

Browse files
committed
lvmoiscsi: add xva export/import test
Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech>
1 parent d987e2a commit ef699b4

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

tests/storage/lvmoiscsi/test_lvmoiscsi_sr.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,13 @@
33
from lib.common import vm_image, wait_for
44
from lib.vdi import VDI
55
from lib.vm import VM
6-
from tests.storage import vdi_is_open
7-
from tests.storage.storage import CoalesceOperation, coalesce_integrity
6+
from tests.storage import (
7+
CoalesceOperation,
8+
XVACompression,
9+
coalesce_integrity,
10+
vdi_is_open,
11+
xva_export_import,
12+
)
813

914
# Requirements:
1015
# - one XCP-ng host >= 8.2
@@ -59,6 +64,11 @@ def test_snapshot(self, vm_on_lvmoiscsi_sr):
5964
def test_coalesce(self, storage_test_vm: 'VM', vdi_on_lvmoiscsi_sr: 'VDI', vdi_op: CoalesceOperation):
6065
coalesce_integrity(storage_test_vm, vdi_on_lvmoiscsi_sr, vdi_op)
6166

67+
@pytest.mark.small_vm
68+
@pytest.mark.parametrize("compression", ["none", "gzip", "zstd"])
69+
def test_xva_export_import(self, vm_on_lvmoiscsi_sr: VM, compression: XVACompression):
70+
xva_export_import(vm_on_lvmoiscsi_sr, compression)
71+
6272
# *** tests with reboots (longer tests).
6373

6474
@pytest.mark.reboot

0 commit comments

Comments
 (0)