class PureBaseVolumeDriverTestCase(PureDriverTestCase):
-
- class fake_pure_base_volume_driver(pure.PureBaseVolumeDriver):
- def initialize_connection():
- pass
-
def setUp(self):
super(PureBaseVolumeDriverTestCase, self).setUp()
- self.driver = self.fake_pure_base_volume_driver(
- configuration=self.mock_config)
+ self.driver = pure.PureBaseVolumeDriver(configuration=self.mock_config)
+
self.driver._array = self.array
self.array.get_rest_version.return_value = '1.4'
def create_export(self, context, volume, connector):
pass
+ def initialize_connection(self, volume, connector, initiator_data=None):
+ """Connect the volume to the specified initiator in Purity.
+
+ This implementation is specific to the host type (iSCSI, FC, etc).
+ """
+ raise NotImplementedError
+
def _get_host(self, connector):
"""Get a Purity Host that corresponds to the host in the connector.