Merge "Fix quobyte test_validate_volume_no_mtab_entry"
This commit is contained in:
commit
2c47063a4f
|
@ -239,7 +239,9 @@ class QuobyteTestCase(test.NoDBTestCase):
|
|||
stat_mock.assert_called_with(self.TEST_MNT_POINT)
|
||||
part_mock.assert_called_once_with(all=True)
|
||||
|
||||
def test_validate_volume_no_mtab_entry(self):
|
||||
@mock.patch.object(psutil, "disk_partitions")
|
||||
def test_validate_volume_no_mtab_entry(self, part_mock):
|
||||
part_mock.return_value = [] # no quobyte@ devices
|
||||
msg = ("No matching Quobyte mount entry for %(mpt)s"
|
||||
" could be found for validation in partition list."
|
||||
% {'mpt': self.TEST_MNT_POINT})
|
||||
|
|
Loading…
Reference in New Issue