Merge "Remove unnecessary self.flags and ConfPatcher"

This commit is contained in:
Zuul 2017-11-29 22:57:26 +00:00 committed by Gerrit Code Review
commit b9c35aea70
3 changed files with 0 additions and 5 deletions

View File

@ -46,7 +46,6 @@ class TestInstanceNotificationSampleWithMultipleCompute(
# server will boot on host1
fake.set_nodes(['host2'])
self.addCleanup(fake.restore_nodes)
self.useFixture(fixtures.ConfPatcher(host='host2'))
self.compute2 = self.start_service('compute', host='host2')
actions = [

View File

@ -64,7 +64,6 @@ class TestSerialConsoleLiveMigrate(test.TestCase):
self.flags(enabled=False, group="vnc")
self.flags(enabled=False, group="spice")
self.flags(use_usb_tablet=False, group="libvirt")
self.flags(host="test_compute1")
self.start_service('conductor')
self.start_service('scheduler')

View File

@ -1288,7 +1288,6 @@ class ProviderUsageBaseTestCase(test.TestCase,
"""
fake.set_nodes([host])
self.addCleanup(fake.restore_nodes)
self.flags(host=host)
compute = self.start_service('compute', host=host)
self.computes[host] = compute
return compute
@ -2830,8 +2829,6 @@ class ServerUnshelveSpawnFailTests(ProviderUsageBaseTestCase):
def setUp(self):
super(ServerUnshelveSpawnFailTests, self).setUp()
# We only need one compute service/host/node for these tests.
fake.set_nodes(['host1'])
self.flags(host='host1')
self.compute1 = self._start_compute('host1')
flavors = self.api.get_flavors()