Browse Source

Merge "Test CentOS Nova server with external network"

changes/65/778165/1
Zuul 5 months ago
committed by Gerrit Code Review
parent
commit
f08ff705a4
  1. 1
      tobiko/openstack/stacks/__init__.py
  2. 5
      tobiko/openstack/stacks/_centos.py
  3. 11
      tobiko/tests/scenario/neutron/test_port.py

1
tobiko/openstack/stacks/__init__.py

@ -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

5
tobiko/openstack/stacks/_centos.py

@ -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

11
tobiko/tests/scenario/neutron/test_port.py

@ -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')

Loading…
Cancel
Save