# Path: os_brick/initiator/connectors/remotefs.py
# LOG = logging.getLogger(__name__)
# class RemoteFsConnector(base.BaseLinuxConnector):
#     def __init__(self, mount_type, root_helper, driver=None,
#                  execute=None,
#                  device_scan_attempts=initiator.DEVICE_SCAN_ATTEMPTS_DEFAULT,
#                  *args, **kwargs):
#     def get_connector_properties(root_helper, *args, **kwargs):
#     def set_execute(self, execute):
#     def get_search_path(self):
#     def _get_volume_path(self, connection_properties):
#     def get_volume_paths(self, connection_properties):
#     def connect_volume(self, connection_properties):
#     def disconnect_volume(self, connection_properties, device_info,
#                           force=False, ignore_errors=False):
#     def extend_volume(self, connection_properties):
# 
# Path: os_brick/remotefs/remotefs.py
# LOG = logging.getLogger(__name__)
# class RemoteFsClient(executor.Executor):
# class ScalityRemoteFsClient(RemoteFsClient):
# class VZStorageRemoteFSClient(RemoteFsClient):
#     def __init__(self, mount_type, root_helper,
#                  execute=None, *args, **kwargs):
#     def get_mount_base(self):
#     def _get_hash_str(self, base_str):
#     def get_mount_point(self, device_name: str):
#     def _read_mounts(self):
#     def mount(self, share, flags=None):
#     def _do_mount(self, mount_type, share, mount_path, mount_options=None,
#                   flags=None):
#     def _mount_nfs(self, nfs_share, mount_path, flags=None):
#     def _check_nfs_options(self):
#     def _option_exists(self, options, opt_pattern):
#     def _update_option(self, options, option, value=None):
#     def __init__(self, mount_type, root_helper,
#                  execute=None, *args, **kwargs):
#     def get_mount_point(self, device_name):
#     def mount(self, share, flags=None):
#     def _vzstorage_write_mds_list(self, cluster_name, mdss):
#     def _do_mount(self, mount_type, vz_share, mount_path,
#                   mount_options=None, flags=None):
# 
# Path: os_brick/tests/initiator/test_connector.py
# MY_IP = '10.0.0.1'
# FAKE_SCSI_WWN = '1234567890'
# class ZeroIntervalLoopingCall(loopingcall.FixedIntervalLoopingCall):
# class ConnectorUtilsTestCase(test_base.TestCase):
# class ConnectorTestCase(test_base.TestCase):
#     def start(self, interval, initial_delay=None, stop_on_exception=True):
#     def _test_brick_get_connector_properties(self, multipath,
#                                              enforce_multipath,
#                                              multipath_result,
#                                              mock_wwnns, mock_wwpns,
#                                              mock_initiator,
#                                              mock_nqn,
#                                              mock_hostuuid,
#                                              mock_sysuuid,
#                                              host='fakehost'):
#     def test_brick_get_connector_properties_connectors_called(self):
#     def test_brick_get_connector_properties(self):
#     def test_brick_get_connector_properties_multipath(self, mock_execute,
#                                                       mock_custom_execute):
#     def test_brick_get_connector_properties_fallback(self, mock_execute,
#                                                      mock_custom_execute):
#     def test_brick_get_connector_properties_raise(self, mock_execute):
#     def test_brick_connector_properties_override_hostname(self):
#     def setUp(self):
#     def fake_execute(self, *cmd, **kwargs):
#     def fake_connection(self):
#     def test_connect_volume(self):
#     def test_disconnect_volume(self):
#     def test_get_connector_properties(self):
#     def test_get_connector_mapping_win32(self):
#     def test_get_connector_mapping(self, mock_platform_machine):
#     def test_factory(self):
#     def test_check_valid_device_with_wrong_path(self):
#     def test_check_valid_device(self):
#     def test_check_valid_device_with_cmd_error(self):
#         def raise_except(*args, **kwargs):


from unittest import mock
from os_brick.initiator.connectors import remotefs
from os_brick.remotefs import remotefs as remotefs_client
from os_brick.tests.initiator import test_connector
# (c) Copyright 2013 Hewlett-Packard Development Company, L.P.
#
#    Licensed under the Apache License, Version 2.0 (the "License"); you may
#    not use this file except in compliance with the License. You may obtain
#    a copy of the License at
#
#         http://www.apache.org/licenses/LICENSE-2.0
#
#    Unless required by applicable law or agreed to in writing, software
#    distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
#    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
#    License for the specific language governing permissions and limitations
#    under the License.



class RemoteFsConnectorTestCase(test_connector.ConnectorTestCase):
    """Test cases for Remote FS initiator class."""
    TEST_DEV = '172.18.194.100:/var/nfs'
    TEST_PATH = '/mnt/test/df0808229363aad55c27da50c38d6328'
    TEST_BASE = '/mnt/test'
    TEST_NAME = '9c592d52-ce47-4263-8c21-4ecf3c029cdb'

    def setUp(self):
        super(RemoteFsConnectorTestCase, self).setUp()
        self.connection_properties = {
            'export': self.TEST_DEV,
            'name': self.TEST_NAME}

# Path: os_brick/initiator/connectors/remotefs.py
# LOG = logging.getLogger(__name__)
# class RemoteFsConnector(base.BaseLinuxConnector):
#     def __init__(self, mount_type, root_helper, driver=None,
#                  execute=None,
#                  device_scan_attempts=initiator.DEVICE_SCAN_ATTEMPTS_DEFAULT,
#                  *args, **kwargs):
#     def get_connector_properties(root_helper, *args, **kwargs):
#     def set_execute(self, execute):
#     def get_search_path(self):
#     def _get_volume_path(self, connection_properties):
#     def get_volume_paths(self, connection_properties):
#     def connect_volume(self, connection_properties):
#     def disconnect_volume(self, connection_properties, device_info,
#                           force=False, ignore_errors=False):
#     def extend_volume(self, connection_properties):
# 
# Path: os_brick/remotefs/remotefs.py
# LOG = logging.getLogger(__name__)
# class RemoteFsClient(executor.Executor):
# class ScalityRemoteFsClient(RemoteFsClient):
# class VZStorageRemoteFSClient(RemoteFsClient):
#     def __init__(self, mount_type, root_helper,
#                  execute=None, *args, **kwargs):
#     def get_mount_base(self):
#     def _get_hash_str(self, base_str):
#     def get_mount_point(self, device_name: str):
#     def _read_mounts(self):
#     def mount(self, share, flags=None):
#     def _do_mount(self, mount_type, share, mount_path, mount_options=None,
#                   flags=None):
#     def _mount_nfs(self, nfs_share, mount_path, flags=None):
#     def _check_nfs_options(self):
#     def _option_exists(self, options, opt_pattern):
#     def _update_option(self, options, option, value=None):
#     def __init__(self, mount_type, root_helper,
#                  execute=None, *args, **kwargs):
#     def get_mount_point(self, device_name):
#     def mount(self, share, flags=None):
#     def _vzstorage_write_mds_list(self, cluster_name, mdss):
#     def _do_mount(self, mount_type, vz_share, mount_path,
#                   mount_options=None, flags=None):
# 
# Path: os_brick/tests/initiator/test_connector.py
# MY_IP = '10.0.0.1'
# FAKE_SCSI_WWN = '1234567890'
# class ZeroIntervalLoopingCall(loopingcall.FixedIntervalLoopingCall):
# class ConnectorUtilsTestCase(test_base.TestCase):
# class ConnectorTestCase(test_base.TestCase):
#     def start(self, interval, initial_delay=None, stop_on_exception=True):
#     def _test_brick_get_connector_properties(self, multipath,
#                                              enforce_multipath,
#                                              multipath_result,
#                                              mock_wwnns, mock_wwpns,
#                                              mock_initiator,
#                                              mock_nqn,
#                                              mock_hostuuid,
#                                              mock_sysuuid,
#                                              host='fakehost'):
#     def test_brick_get_connector_properties_connectors_called(self):
#     def test_brick_get_connector_properties(self):
#     def test_brick_get_connector_properties_multipath(self, mock_execute,
#                                                       mock_custom_execute):
#     def test_brick_get_connector_properties_fallback(self, mock_execute,
#                                                      mock_custom_execute):
#     def test_brick_get_connector_properties_raise(self, mock_execute):
#     def test_brick_connector_properties_override_hostname(self):
#     def setUp(self):
#     def fake_execute(self, *cmd, **kwargs):
#     def fake_connection(self):
#     def test_connect_volume(self):
#     def test_disconnect_volume(self):
#     def test_get_connector_properties(self):
#     def test_get_connector_mapping_win32(self):
#     def test_get_connector_mapping(self, mock_platform_machine):
#     def test_factory(self):
#     def test_check_valid_device_with_wrong_path(self):
#     def test_check_valid_device(self):
#     def test_check_valid_device_with_cmd_error(self):
#         def raise_except(*args, **kwargs):


# Path: os_brick/tests/initiator/connectors/test_remotefs.py
from unittest import mock
from os_brick.initiator.connectors import remotefs
from os_brick.remotefs import remotefs as remotefs_client
from os_brick.tests.initiator import test_connector

# (c) Copyright 2013 Hewlett-Packard Development Company, L.P.
#
#    Licensed under the Apache License, Version 2.0 (the "License"); you may
#    not use this file except in compliance with the License. You may obtain
#    a copy of the License at
#
#         http://www.apache.org/licenses/LICENSE-2.0
#
#    Unless required by applicable law or agreed to in writing, software
#    distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
#    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
#    License for the specific language governing permissions and limitations
#    under the License.



class RemoteFsConnectorTestCase(test_connector.ConnectorTestCase):
    """Test cases for Remote FS initiator class."""
    TEST_DEV = '172.18.194.100:/var/nfs'
    TEST_PATH = '/mnt/test/df0808229363aad55c27da50c38d6328'
    TEST_BASE = '/mnt/test'
    TEST_NAME = '9c592d52-ce47-4263-8c21-4ecf3c029cdb'

    def setUp(self):
        super(RemoteFsConnectorTestCase, self).setUp()
        self.connection_properties = {
            'export': self.TEST_DEV,
            'name': self.TEST_NAME}

        self.connector = remotefs.RemoteFsConnector(