Test CentOS Nova server with external network

Change-Id: I2a6ef56e3f0622999118c3f1eb776d2271a94d14
This commit is contained in:
Federico Ressi 2021-02-12 13:19:15 +01:00
parent 0b2d3ed95e
commit 66351ef4b1
3 changed files with 16 additions and 1 deletions

View File

@ -27,6 +27,7 @@ from tobiko.openstack.stacks import _ubuntu
CentosFlavorStackFixture = _centos.CentosFlavorStackFixture
CentosImageFixture = _centos.CentosImageFixture
CentosServerStackFixture = _centos.CentosServerStackFixture
CentosExternalServerStackFixture = _centos.CentosExternalServerStackFixture
CirrosFlavorStackFixture = _cirros.CirrosFlavorStackFixture
CirrosImageFixture = _cirros.CirrosImageFixture

View File

@ -52,3 +52,8 @@ class CentosServerStackFixture(_nova.ServerStackFixture):
#: Setup SWAP file in bytes
swap_maxsize = 1 * 1024 * 1024 * 1024 # 1 GB
class CentosExternalServerStackFixture(CentosServerStackFixture,
_nova.ExternalServerStackFixture):
pass

View File

@ -113,7 +113,7 @@ class PortTest(testtools.TestCase):
# --- Test opening ports on external network ----------------------------------
@stacks.skip_unless_has_external_network
class ExternalPortTest(PortTest):
class CirrosExternalPortTest(PortTest):
"""Test Neutron ports"""
#: Resources stack with Nova server to send messages to
@ -121,6 +121,15 @@ class ExternalPortTest(PortTest):
stacks.CirrosExternalServerStackFixture)
@stacks.skip_unless_has_external_network
class CentosExternalPortTest(PortTest):
"""Test Neutron ports"""
#: Resources stack with Nova server to send messages to
stack = tobiko.required_setup_fixture(
stacks.CentosExternalServerStackFixture)
# --- Test la-h3 extension ----------------------------------------------------
@neutron.skip_if_missing_networking_extensions('l3-ha')