Esempio n. 1
0
 def __init__(self, *args, **kwargs):
     super(VNXDriver, self).__init__(*args, **kwargs)
     utils.init_ops(self.configuration)
     self.protocol = self.configuration.storage_protocol.lower()
     self.active_backend_id = kwargs.get('active_backend_id', None)
     self.adapter = None
     self._stats = {}
Esempio n. 2
0
 def __init__(self, *args, **kwargs):
     super(VNXDriver, self).__init__(*args, **kwargs)
     utils.init_ops(self.configuration)
     self.protocol = self.configuration.storage_protocol.lower()
     self.active_backend_id = kwargs.get('active_backend_id', None)
     self.adapter = None
     self._stats = {}
Esempio n. 3
0
 def setUp(self):
     super(TestReplicationAdapter, self).setUp()
     self.configuration = conf.Configuration(None)
     vnx_utils.init_ops(self.configuration)
     self.configuration.san_ip = '192.168.1.1'
     self.configuration.storage_vnx_authentication_type = 'global'
     self.ctxt = context.get_admin_context()
 def setUp(self):
     super(TestReplicationAdapter, self).setUp()
     self.configuration = conf.Configuration(None)
     vnx_utils.init_ops(self.configuration)
     self.configuration.san_ip = '192.168.1.1'
     self.configuration.storage_vnx_authentication_type = 'global'
     self.ctxt = context.get_admin_context()
Esempio n. 5
0
    def test_patch_adapter_common(self):
        self.configuration = conf.Configuration(None)
        utils.init_ops(self.configuration)
        self.configuration.san_ip = '192.168.1.1'
        self.configuration.storage_vnx_authentication_type = 'global'
        self.configuration.storage_vnx_pool_names = 'pool1,unit_test_pool'

        @res_mock.patch_common_adapter
        def test_patch_common_adapter_inner(self, patched_adapter, mocked):
            pool = patched_adapter.client.vnx.get_pool()
            self.assertEqual('pool_name', pool.name)

        test_patch_common_adapter_inner(self)
Esempio n. 6
0
    def test_patch_adapter_common(self):
        self.configuration = conf.Configuration(None)
        utils.init_ops(self.configuration)
        self.configuration.san_ip = '192.168.1.1'
        self.configuration.storage_vnx_authentication_type = 'global'
        self.configuration.storage_vnx_pool_names = 'pool1,unit_test_pool'

        @res_mock.patch_common_adapter
        def test_patch_common_adapter_inner(self, patched_adapter, mocked):
            pool = patched_adapter.client.vnx.get_pool()
            self.assertEqual('pool_name', pool.name)

        test_patch_common_adapter_inner(self)
Esempio n. 7
0
 def setUp(self):
     super(TestReplicationAdapter, self).setUp()
     vnx_utils.init_ops(self.configuration)