Skip to content

Commit ed44aaa

Browse files
feat: Add pool_with_qcow2 validations for zfs SR during qcow2 tests
Signed-off-by: Rushikesh Jadhav <[email protected]>
1 parent 8c72eee commit ed44aaa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/storage/zfs/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def zpool_vol0(sr_disk_wiped, host_with_zfs):
3535
host_with_zfs.ssh(['zpool', 'destroy', POOL_NAME])
3636

3737
@pytest.fixture(scope='package')
38-
def zfs_sr(host, image_format, zpool_vol0):
38+
def zfs_sr(host, image_format, zpool_vol0, pool_with_qcow2):
3939
""" A ZFS SR on first host. """
4040
sr = host.sr_create('zfs', "ZFS-local-SR-test", {
4141
'location': POOL_PATH,

tests/storage/zfs/test_zfs_sr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def test_create_zfs_sr_without_zfs(self, host, image_format):
3838
assert False, "SR creation should not have succeeded!"
3939

4040
@pytest.mark.usefixtures("zpool_vol0")
41-
def test_create_and_destroy_sr(self, host, image_format):
41+
def test_create_and_destroy_sr(self, host, image_format, pool_with_qcow2):
4242
# Create and destroy tested in the same test to leave the host as unchanged as possible
4343
sr = host.sr_create('zfs', "ZFS-local-SR-test", {
4444
'location': POOL_PATH,

0 commit comments

Comments
 (0)