Esempio n. 1
0
    def test_unmount_share(self, mock_execute):
        remotefs.unmount_share(
            mock.sentinel.mount_path, mock.sentinel.export_path)

        mock_execute.assert_any_call('umount', mock.sentinel.mount_path,
                                     run_as_root=True, attempts=3,
                                     delay_on_retry=True)
Esempio n. 2
0
    def test_unmount_share(self, mock_execute):
        remotefs.unmount_share(
            mock.sentinel.mount_path, mock.sentinel.export_path)

        mock_execute.assert_any_call('umount', mock.sentinel.mount_path,
                                     run_as_root=True, attempts=3,
                                     delay_on_retry=True)
Esempio n. 3
0
 def disconnect_volume(self, connection_info, disk_dev):
     """Disconnect the volume."""
     smbfs_share = connection_info['data']['export']
     mount_path = self._get_mount_path(smbfs_share)
     remotefs.unmount_share(mount_path, smbfs_share)
    def test_unmount_share(self, mock_umount):
        remotefs.unmount_share(mock.sentinel.mount_path,
                               mock.sentinel.export_path)

        mock_umount.assert_has_calls([mock.call(mock.sentinel.mount_path)])
Esempio n. 5
0
    def test_unmount_share(self, mock_umount):
        remotefs.unmount_share(
            mock.sentinel.mount_path, mock.sentinel.export_path)

        mock_umount.assert_has_calls(
            [mock.call(mock.sentinel.mount_path)])