def setUp(self): super(HyperVAPITestCase, self).setUp() self._user_id = 'fake' self._project_id = 'fake' self._instance_data = None self._image_metadata = None self._dest_server = None self._fetched_image = None self._update_image_raise_exception = False self._post_method_called = False self._recover_method_called = False self._volume_target_portal = 'testtargetportal:3260' self._volume_id = '8957e088-dbee-4216-8056-978353a3e737' self._context = context.RequestContext(self._user_id, self._project_id) self._setup_stubs() self.flags(instances_path=r'C:\Hyper-V\test\instances', vswitch_name='external') self._hypervutils = hypervutils.HyperVUtils() self._conn = driver_hyperv.HyperVDriver(None)
def setUp(self): super(HyperVAPITestCase, self).setUp() self._user_id = 'fake' self._project_id = 'fake' self._instance_data = None self._image_metadata = None self._dest_server = None self._fetched_image = None self._update_image_raise_exception = False self._post_method_called = False self._recover_method_called = False self._volume_target_portal = '192.168.1.112:3260' self._volume_id = '10958016-e196-42e3-9e7f-5d8927ae3099' self._context = context.RequestContext(self._user_id, self._project_id) self._setup_stubs() self.flags(instances_path=r'C:\Hyper-V\test\instances', vswitch_name='external') self._hypervutils = hypervutils.HyperVUtils() self._conn = driver_hyperv.HyperVDriver()