コード例 #1
0
ファイル: test_remotefs.py プロジェクト: 375670450/nova
    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)
コード例 #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)
コード例 #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)
コード例 #4
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)])
コード例 #5
0
ファイル: test_remotefs.py プロジェクト: klmitch/nova
    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)])