nova-net: Remove final references to nova-net from functional tests
Most of this is just removal of unnecessary 'use_neutron=True' conf overrides. The sole exception is the conversion of the metadata API tests, which turned out to be far less effort to convert than I expected. Change-Id: I5114bf13e7df95ed02be70f29d453116387d4f9c Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
This commit is contained in:
parent
5dcfd0750f
commit
9142a97f24
@ -20,7 +20,6 @@ class TestComputeTaskNotificationSample(
|
||||
notification_sample_base.NotificationSampleTestBase):
|
||||
|
||||
def setUp(self):
|
||||
self.flags(use_neutron=True)
|
||||
super(TestComputeTaskNotificationSample, self).setUp()
|
||||
self.neutron = fixtures.NeutronFixture(self)
|
||||
self.useFixture(self.neutron)
|
||||
|
@ -28,7 +28,6 @@ class TestInstanceNotificationSampleWithMultipleCompute(
|
||||
|
||||
def setUp(self):
|
||||
self.flags(compute_driver='fake.FakeLiveMigrateDriver')
|
||||
self.flags(use_neutron=True)
|
||||
self.flags(bdms_in_notifications='True', group='notifications')
|
||||
super(TestInstanceNotificationSampleWithMultipleCompute, self).setUp()
|
||||
self.neutron = fixtures.NeutronFixture(self)
|
||||
@ -333,7 +332,6 @@ class TestInstanceNotificationSample(
|
||||
notification_sample_base.NotificationSampleTestBase):
|
||||
|
||||
def setUp(self):
|
||||
self.flags(use_neutron=True)
|
||||
self.flags(bdms_in_notifications='True', group='notifications')
|
||||
super(TestInstanceNotificationSample, self).setUp()
|
||||
self.neutron = fixtures.NeutronFixture(self)
|
||||
|
@ -19,7 +19,6 @@ class TestServerGroupNotificationSample(
|
||||
notification_sample_base.NotificationSampleTestBase):
|
||||
|
||||
def setUp(self):
|
||||
self.flags(use_neutron=True)
|
||||
super(TestServerGroupNotificationSample, self).setUp()
|
||||
self.neutron = fixtures.NeutronFixture(self)
|
||||
self.useFixture(self.neutron)
|
||||
|
@ -23,7 +23,6 @@ class TestVolumeUsageNotificationSample(
|
||||
notification_sample_base.NotificationSampleTestBase):
|
||||
|
||||
def setUp(self):
|
||||
self.flags(use_neutron=True)
|
||||
self.flags(volume_usage_poll_interval=60)
|
||||
super(TestVolumeUsageNotificationSample, self).setUp()
|
||||
self.neutron = fixtures.NeutronFixture(self)
|
||||
|
@ -45,7 +45,6 @@ class SchedulerOnlyChecksTargetTest(test.TestCase,
|
||||
self.useFixture(policy_fixture.RealPolicyFixture())
|
||||
|
||||
# The NeutronFixture is needed to stub out validate_networks in API.
|
||||
self.flags(use_neutron=True)
|
||||
self.useFixture(nova_fixtures.NeutronFixture(self))
|
||||
|
||||
# We need the computes reporting into placement for the filter
|
||||
|
@ -62,18 +62,16 @@ class MetadataTest(test.TestCase):
|
||||
project_id='fake', hostname='test')
|
||||
instance.create()
|
||||
|
||||
# NOTE(mikal): We could create a network and a fixed IP here, but it
|
||||
# turns out to be heaps of fiddly boiler plate code, so let's just
|
||||
# fake it and hope mriedem doesn't notice.
|
||||
# TODO(mriedem): Make this all work with the Neutron fixture.
|
||||
self.flags(use_neutron=False)
|
||||
# The NeutronFixture is needed to provide the fixed IP for the metadata
|
||||
# service
|
||||
self.useFixture(nova_fixtures.NeutronFixture(self))
|
||||
|
||||
def fake_get_fixed_ip_by_address(self, ctxt, address):
|
||||
return {'instance_uuid': instance.uuid}
|
||||
|
||||
self.useFixture(
|
||||
fixtures.MonkeyPatch(
|
||||
'nova.network.api.API.get_fixed_ip_by_address',
|
||||
'nova.network.neutronv2.api.API.get_fixed_ip_by_address',
|
||||
fake_get_fixed_ip_by_address))
|
||||
|
||||
def fake_get_ec2_ip_info(nw_info):
|
||||
|
Loading…
x
Reference in New Issue
Block a user