Correct PXEPrivateMethodsTestCase.setUp
Unit tests within the PXEPrivateMethodsTestCase test class have been sporadically failing on py26 test nodes since f14dacb7. That commit introduced tests that interacted with the DB without inheriting from DbTestCase, and loaded a driver via stevedore without mocking the extension manager loading. This patch corrects the above ommissions. Change-Id: I2f930db7d3bb8abe120ce24a604f800c2e861fca Closes-bug: #1279992
This commit is contained in:
parent
11968a7516
commit
7aa2ab905e
@ -197,7 +197,7 @@ class PXEValidateParametersTestCase(base.TestCase):
|
||||
st_nlink, 2)
|
||||
|
||||
|
||||
class PXEPrivateMethodsTestCase(base.TestCase):
|
||||
class PXEPrivateMethodsTestCase(db_base.DbTestCase):
|
||||
|
||||
def setUp(self):
|
||||
super(PXEPrivateMethodsTestCase, self).setUp()
|
||||
@ -205,6 +205,7 @@ class PXEPrivateMethodsTestCase(base.TestCase):
|
||||
'driver': 'fake_pxe',
|
||||
'driver_info': INFO_DICT
|
||||
}
|
||||
mgr_utils.get_mocked_node_manager(driver='fake_pxe')
|
||||
self.dbapi = dbapi.get_instance()
|
||||
self.node = self._create_test_node(**n)
|
||||
self.context = context.get_admin_context()
|
||||
|
Loading…
x
Reference in New Issue
Block a user