~ubuntu-branches/ubuntu/quantal/nova/quantal-proposed

« back to all changes in this revision

Viewing changes to nova/tests/baremetal/test_proxy_bare_metal.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2012-08-16 14:04:11 UTC
  • mto: This revision was merged to the branch mainline in revision 84.
  • Revision ID: package-import@ubuntu.com-20120816140411-0mr4n241wmk30t9l
Tags: upstream-2012.2~f3
ImportĀ upstreamĀ versionĀ 2012.2~f3

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
from nova.tests import fake_utils
28
28
 
29
29
from nova.virt.baremetal import dom
30
 
from nova.virt.baremetal import proxy
 
30
from nova.virt.baremetal import driver
31
31
 
32
32
 
33
33
FLAGS = flags.FLAGS
226
226
        self.assertEquals(bmdom.find_domain('instance-00000001'), domain)
227
227
 
228
228
 
229
 
class ProxyBareMetalTestCase(test.TestCase):
 
229
class BareMetalTestCase(test.TestCase):
230
230
 
231
231
    test_ip = '10.11.12.13'
232
232
    test_instance = {'memory_kb': '1024000',
240
240
                     'instance_type_id': '5'}  # m1.small
241
241
 
242
242
    def setUp(self):
243
 
        super(ProxyBareMetalTestCase, self).setUp()
 
243
        super(BareMetalTestCase, self).setUp()
244
244
        self.flags(baremetal_driver='fake')
245
245
        fake_utils.stub_out_utils_execute(self.stubs)
246
246
 
257
257
        self.mox.ReplayAll()
258
258
 
259
259
        # Code under test
260
 
        conn = proxy.ProxyConnection(True)
 
260
        conn = driver.BareMetalDriver(True)
261
261
        # TODO(mikalstill): this is not a very good fake instance
262
262
        info = conn.get_info({'name': 'instance-00000001'})
263
263