def setUp(self): # Point _VirtDriverTestCase at the right module self.driver_module = 'nova.virt.baremetal.BareMetalDriver' self.flags(**COMMON_FLAGS) utils.clear_tables() self.node = _create_baremetal_stuff() self.node_id = self.node['id'] super(BaremetalDriverTestCase, self).setUp() fake_image.stub_out_image_service(self.stubs)
def setUp(self): self.flags(**COMMON_FLAGS) utils.clear_tables() super(BaremetalDriverSpawnTestCase, self).setUp() fake_image.stub_out_image_service(self.stubs) self.context = test_utils.get_test_admin_context() self.instance = test_utils.get_test_instance() self.instance['uuid'] = '12345' self.network_info = test_utils.get_test_network_info() self.block_device_info = None self.image_meta = test_utils.get_test_image_info(None, self.instance) self.node = _create_baremetal_stuff() self.node_id = self.node['id'] self.driver = bm_driver.BareMetalDriver() self.kwargs = dict(context=self.context, instance=self.instance, image_meta=self.image_meta, injected_files=[('/foo', 'bar'), ('/abc', 'xyz')], admin_password='******', network_info=self.network_info, block_device_info=self.block_device_info)
def setUp(self): self.flags(**COMMON_FLAGS) utils.clear_tables() super(BaremetalDriverSpawnTestCase, self).setUp() fake_image.stub_out_image_service(self.stubs) self.context = test_utils.get_test_admin_context() self.instance = test_utils.get_test_instance() self.instance['uuid'] = '12345' self.network_info = test_utils.get_test_network_info() self.block_device_info = None self.image_meta = test_utils.get_test_image_info(None, self.instance) self.node = _create_baremetal_stuff() self.node_id = self.node['id'] self.driver = bm_driver.BareMetalDriver() self.kwargs = dict( context=self.context, instance=self.instance, image_meta=self.image_meta, injected_files=[('/foo', 'bar'), ('/abc', 'xyz')], admin_password='******', network_info=self.network_info, block_device_info=self.block_device_info)
def setUp(self): super(BMDBTestCase, self).setUp() self.flags(baremetal_sql_connection='sqlite:///:memory:') utils.clear_tables() self.context = nova_context.get_admin_context()