Example #1
0
    def setUp(self):
        super(NetAppFileStorageLibraryTestCase, self).setUp()

        self.mock_object(na_utils, 'validate_driver_instantiation')

        # Mock loggers as themselves to allow logger arg validation
        mock_logger = log.getLogger('mock_logger')
        self.mock_object(lib_single_svm.LOG, 'info',
                         mock.Mock(side_effect=mock_logger.info))

        config = fake.get_config_cmode()
        config.netapp_vserver = fake.VSERVER1

        kwargs = {
            'configuration': config,
            'private_storage': mock.Mock(),
            'app_version': fake.APP_VERSION
        }

        self.library = lib_single_svm.NetAppCmodeSingleSVMFileStorageLibrary(
            fake.DRIVER_NAME, **kwargs)

        self.library._client = mock.Mock()
        self.client = self.library._client
        self.context = mock.Mock()
Example #2
0
 def __init__(self, *args, **kwargs):
     super(NetAppCmodeSingleSvmShareDriver,
           self).__init__(False, *args, **kwargs)
     self.library = lib_single_svm.NetAppCmodeSingleSVMFileStorageLibrary(
         self.DRIVER_NAME, **kwargs)
Example #3
0
 def __init__(self, *args, **kwargs):
     super(NetAppCmodeSingleSvmShareDriver,
           self).__init__(False, *args, **kwargs)
     self.library = lib_single_svm.NetAppCmodeSingleSVMFileStorageLibrary(
         self.DRIVER_NAME, **kwargs)
     self.dhss_mandatory_security_service_association = {}