Skip to content

Commit

Permalink
fixup! Add tests for zfs-ng
Browse files Browse the repository at this point in the history
  • Loading branch information
ydirson committed Mar 27, 2024
1 parent b662d59 commit 3d8b053
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/storage/zfs_ng/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def host_with_zfs(host_with_saved_yum_state):
@pytest.fixture(scope='package')
def zfs_sr(host, sr_disk_wiped, host_with_zfs):
""" A ZFS SR on first host. """
sr = host.sr_create('zfs-ng', "ZFS-local-SR-test", {'devices': '/dev/' + sr_disk_wiped})
sr = host.sr_create('zfs-ng', "ZFS-local-SR-test", {'device': '/dev/' + sr_disk_wiped})
yield sr
# teardown violently - we don't want to require manual recovery when a test fails
sr.forget()
Expand Down
2 changes: 1 addition & 1 deletion tests/storage/zfs_ng/test_zfs_sr.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class TestZFSSRCreateDestroy:

def test_create_and_destroy_sr(self, host, sr_disk_wiped):
# Create and destroy tested in the same test to leave the host as unchanged as possible
sr = host.sr_create('zfs-ng', "ZFS-local-SR-test", {'devices': '/dev/' + sr_disk_wiped}, verify=True)
sr = host.sr_create('zfs-ng', "ZFS-local-SR-test", {'device': '/dev/' + sr_disk_wiped}, verify=True)
# import a VM in order to detect vm import issues here rather than in the vm_on_xfs_fixture used in
# the next tests, because errors in fixtures break teardown
vm = host.import_vm(vm_image('mini-linux-x86_64-bios'), sr_uuid=sr.uuid)
Expand Down

0 comments on commit 3d8b053

Please sign in to comment.