refactor baremetal/proxy => baremetal/driver

Part of bp:virt-driver-cleanup

Make the baremetal driver consistent in naming as a driver
instead of a proxy / connection.

Change-Id: I75d7d90bd8139842b588f1fafb1267511f29a1fb
This commit is contained in:
Sean Dague
2012-07-06 10:30:04 -04:00
parent 70f7d7f830
commit 5fc110dc71

View File

@@ -27,7 +27,7 @@ from nova import test
from nova.tests import fake_utils from nova.tests import fake_utils
from nova.virt.baremetal import dom from nova.virt.baremetal import dom
from nova.virt.baremetal import proxy from nova.virt.baremetal import driver
FLAGS = flags.FLAGS FLAGS = flags.FLAGS
@@ -226,7 +226,7 @@ class BareMetalDomTestCase(test.TestCase):
self.assertEquals(bmdom.find_domain('instance-00000001'), domain) self.assertEquals(bmdom.find_domain('instance-00000001'), domain)
class ProxyBareMetalTestCase(test.TestCase): class BareMetalTestCase(test.TestCase):
test_ip = '10.11.12.13' test_ip = '10.11.12.13'
test_instance = {'memory_kb': '1024000', test_instance = {'memory_kb': '1024000',
@@ -240,7 +240,7 @@ class ProxyBareMetalTestCase(test.TestCase):
'instance_type_id': '5'} # m1.small 'instance_type_id': '5'} # m1.small
def setUp(self): def setUp(self):
super(ProxyBareMetalTestCase, self).setUp() super(BareMetalTestCase, self).setUp()
self.flags(baremetal_driver='fake') self.flags(baremetal_driver='fake')
fake_utils.stub_out_utils_execute(self.stubs) fake_utils.stub_out_utils_execute(self.stubs)
@@ -257,7 +257,7 @@ class ProxyBareMetalTestCase(test.TestCase):
self.mox.ReplayAll() self.mox.ReplayAll()
# Code under test # Code under test
conn = proxy.ProxyConnection(True) conn = driver.BareMetalDriver(True)
# TODO(mikalstill): this is not a very good fake instance # TODO(mikalstill): this is not a very good fake instance
info = conn.get_info({'name': 'instance-00000001'}) info = conn.get_info({'name': 'instance-00000001'})