tests: fix zfs create_fileset

main
svalouch 5 years ago
parent ce7d07582f
commit 334520df3d

@ -387,7 +387,7 @@ class TestZFS:
assert dataset_type == DatasetType.FILESET assert dataset_type == DatasetType.FILESET
assert properties == {'test': 'test', 'mountpoint': '/test/testfs'} assert properties == {'test': 'test', 'mountpoint': '/test/testfs'}
assert metadata_properties is None assert metadata_properties is None
assert mount_helper == 'mounthelper' assert mount_helper is None
assert sparse is False assert sparse is False
assert size is None assert size is None
assert recursive is False assert recursive is False
@ -396,7 +396,7 @@ class TestZFS:
with patch.object(ZFS, 'create_dataset', new=mock_create_dataset): with patch.object(ZFS, 'create_dataset', new=mock_create_dataset):
zfs = ZFS() zfs = ZFS()
ds = zfs.create_fileset('test/testfs', mountpoint='/test/testfs', properties=dict(test='test'), ds = zfs.create_fileset('test/testfs', mountpoint='/test/testfs', properties=dict(test='test'),
mount_helper='mounthelper', recursive=False) recursive=False)
assert ds.name == 'testfs' assert ds.name == 'testfs'
def test_create_volume_call(self): def test_create_volume_call(self):

Loading…
Cancel
Save