Example #1
0
 def setUp(self):
     super(NetAppCDOTDataMotionTestCase, self).setUp()
     self.backend = 'backend1'
     self.mock_cmode_client = self.mock_object(client_cmode, 'Client')
     self.config = fakes.get_fake_cmode_config(self.backend)
     CONF.set_override('volume_backend_name',
                       self.backend,
                       group=self.backend,
                       enforce_type=True)
     CONF.set_override('netapp_transport_type',
                       'https',
                       group=self.backend,
                       enforce_type=True)
     CONF.set_override('netapp_login',
                       'fake_user',
                       group=self.backend,
                       enforce_type=True)
     CONF.set_override('netapp_password',
                       'fake_password',
                       group=self.backend,
                       enforce_type=True)
     CONF.set_override('netapp_server_hostname',
                       'fake_hostname',
                       group=self.backend,
                       enforce_type=True)
     CONF.set_override('netapp_server_port',
                       8866,
                       group=self.backend,
                       enforce_type=True)
Example #2
0
 def setUp(self):
     super(NetAppCDOTDataMotionTestCase, self).setUp()
     self.backend = 'backend1'
     self.mock_cmode_client = self.mock_object(client_cmode, 'Client')
     self.config = fakes.get_fake_cmode_config(self.backend)
     CONF.set_override('volume_backend_name', self.backend,
                       group=self.backend, enforce_type=True)
     CONF.set_override('netapp_transport_type', 'https',
                       group=self.backend, enforce_type=True)
     CONF.set_override('netapp_login', 'fake_user',
                       group=self.backend, enforce_type=True)
     CONF.set_override('netapp_password', 'fake_password',
                       group=self.backend, enforce_type=True)
     CONF.set_override('netapp_server_hostname', 'fake_hostname',
                       group=self.backend, enforce_type=True)
     CONF.set_override('netapp_server_port', 8866,
                       group=self.backend, enforce_type=True)
Example #3
0
 def setUp(self):
     super(NetAppCDOTDataMotionMixinTestCase, self).setUp()
     self.dm_mixin = data_motion.DataMotionMixin()
     self.src_backend = 'backend1'
     self.dest_backend = 'backend2'
     self.src_vserver = 'source_vserver'
     self.dest_vserver = 'dest_vserver'
     self._setup_mock_config()
     self.mock_cmode_client = self.mock_object(client_cmode, 'Client')
     self.src_flexvol_name = 'volume_c02d497a_236c_4852_812a_0d39373e312a'
     self.dest_flexvol_name = self.src_flexvol_name
     self.mock_src_client = mock.Mock()
     self.mock_dest_client = mock.Mock()
     self.config = fakes.get_fake_cmode_config(self.src_backend)
     self.mock_object(utils, 'get_backend_configuration',
                      side_effect=[self.mock_dest_config,
                                   self.mock_src_config])
     self.mock_object(utils, 'get_client_for_backend',
                      side_effect=[self.mock_dest_client,
                                   self.mock_src_client])
Example #4
0
 def setUp(self):
     super(NetAppCDOTDataMotionMixinTestCase, self).setUp()
     self.dm_mixin = data_motion.DataMotionMixin()
     self.src_backend = 'backend1'
     self.dest_backend = 'backend2'
     self.src_vserver = 'source_vserver'
     self.dest_vserver = 'dest_vserver'
     self._setup_mock_config()
     self.mock_cmode_client = self.mock_object(client_cmode, 'Client')
     self.src_flexvol_name = 'volume_c02d497a_236c_4852_812a_0d39373e312a'
     self.dest_flexvol_name = self.src_flexvol_name
     self.mock_src_client = mock.Mock()
     self.mock_dest_client = mock.Mock()
     self.config = fakes.get_fake_cmode_config(self.src_backend)
     self.mock_object(utils, 'get_backend_configuration',
                      mock.Mock(side_effect=[self.mock_dest_config,
                                             self.mock_src_config]))
     self.mock_object(utils, 'get_client_for_backend',
                      mock.Mock(side_effect=[self.mock_dest_client,
                                             self.mock_src_client]))