Merge "Test CentOS Nova server with external network"

This commit is contained in:
Zuul 2021-03-01 14:50:14 +00:00 committed by Gerrit Code Review
commit f08ff705a4
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')