Skip to content

Commit 38db6d5

Browse files
feat: Add pool_with_qcow2 validations for largeblock SR during qcow2 tests
1 parent b21bc67 commit 38db6d5

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

tests/storage/largeblock/conftest.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@
1111
from lib.sr import SR
1212

1313
@pytest.fixture(scope='package')
14-
def largeblock_sr(host: Host, unused_4k_disks: dict[Host, list[Host.BlockDeviceInfo]], image_format) -> Generator[SR]:
14+
def largeblock_sr(host: Host,
15+
unused_4k_disks: dict[Host, list[Host.BlockDeviceInfo]],
16+
image_format,
17+
pool_with_qcow2
18+
) -> Generator[SR]:
1519
""" A LARGEBLOCK SR on first host. """
1620
sr_disk = unused_4k_disks[host][0]["name"]
1721
sr = host.sr_create('largeblock', "LARGEBLOCK-local-SR-test",

tests/storage/largeblock/test_largeblock_sr.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ def test_create_sr_with_missing_device(self, host):
2525

2626
def test_create_and_destroy_sr(self, host: Host,
2727
unused_4k_disks: dict[Host, list[Host.BlockDeviceInfo]],
28-
image_format) -> None:
28+
image_format,
29+
pool_with_qcow2
30+
) -> None:
2931
# Create and destroy tested in the same test to leave the host as unchanged as possible
3032
sr_disk = unused_4k_disks[host][0]["name"]
3133
sr = host.sr_create('largeblock', "LARGEBLOCK-local-SR-test",

0 commit comments

Comments
 (0)