示例#1
0
 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)
示例#2
0
 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)
示例#3
0
    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)
示例#4
0
    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)
示例#5
0
文件: base.py 项目: chinmaynaik/nova
 def setUp(self):
     super(BMDBTestCase, self).setUp()
     self.flags(baremetal_sql_connection='sqlite:///:memory:')
     utils.clear_tables()
     self.context = nova_context.get_admin_context()
示例#6
0
文件: base.py 项目: stuartbyma/nova
 def setUp(self):
     super(BMDBTestCase, self).setUp()
     self.flags(baremetal_sql_connection='sqlite:///:memory:')
     utils.clear_tables()
     self.context = nova_context.get_admin_context()