Rename fixture: NetworkWithNetMtuWriteStackFixture -> NetworkWithNetMtuWriteStackFixture

Change-Id: Ia8d176cd70c9cfc38f17199f961650504e460147
This commit is contained in:
Federico Ressi 2019-06-12 16:00:50 +02:00
parent cbe248c756
commit b4d06c565a
3 changed files with 6 additions and 5 deletions

View File

@ -21,6 +21,7 @@ from tobiko.openstack.stacks import _nova
KeyPairStackFixture = _nova.KeyPairStackFixture
NetworkStackFixture = _neutron.NetworkStackFixture
NetworkNetMtuWriteStackFixture = _neutron.NetworkNetMtuWriteStackFixture
NetworkWithNetMtuWriteStackFixture = (
_neutron.NetworkWithNetMtuWriteStackFixture)
FloatingIpServerStackFixture = _neutron.FloatingIpServerStackFixture
SecurityGroupsFixture = _neutron.SecurityGroupsFixture

View File

@ -87,7 +87,7 @@ class NetworkStackFixture(heat.HeatStackFixture):
@neutron.skip_if_missing_networking_extensions('net-mtu-writable')
class NetworkNetMtuWriteStackFixture(heat.HeatStackFixture):
class NetworkWithNetMtuWriteStackFixture(NetworkStackFixture):
# Whenever cat obtain network MTU value
has_net_mtu = True
@ -97,7 +97,7 @@ class NetworkNetMtuWriteStackFixture(heat.HeatStackFixture):
def setup_parameters(self):
"""Setup Heat template parameters"""
super(NetworkNetMtuWriteStackFixture, self).setup_parameters()
super(NetworkWithNetMtuWriteStackFixture, self).setup_parameters()
if self.mtu:
self.setup_net_mtu_writable()

View File

@ -58,11 +58,11 @@ class NetworkTestCase(testtools.TestCase):
@neutron.skip_if_missing_networking_extensions('net-mtu-write')
class NetworkNetMtuWriteTestCase(NetworkTestCase):
class NetworkWithNetMtuWriteTestCase(NetworkTestCase):
#: Stack of resources with a network with a gateway router
stack = tobiko.required_setup_fixture(
stacks.NetworkNetMtuWriteStackFixture)
stacks.NetworkWithNetMtuWriteStackFixture)
def test_net_mtu_write(self):
self.assertEqual(self.stack.mtu, self.stack.outputs.mtu)