Test ports with L3HA and CentOS/Ubuntu nova servers
Change-Id: Id173682b0c5d2ea0b239924696fce148762079b9
This commit is contained in:
parent
428b96e2da
commit
b7b76b7a11
@ -37,6 +37,8 @@ CirrosSameHostServerStackFixture = _cirros.CirrosSameHostServerStackFixture
|
|||||||
|
|
||||||
L3haNetworkStackFixture = _l3ha.L3haNetworkStackFixture
|
L3haNetworkStackFixture = _l3ha.L3haNetworkStackFixture
|
||||||
L3haServerStackFixture = _l3ha.L3haServerStackFixture
|
L3haServerStackFixture = _l3ha.L3haServerStackFixture
|
||||||
|
L3haUbuntuServerStackFixture = _l3ha.L3haUbuntuServerStackFixture
|
||||||
|
L3haCentosServerStackFixture = _l3ha.L3haCentosServerStackFixture
|
||||||
L3haPeerServerStackFixture = _l3ha.L3haPeerServerStackFixture
|
L3haPeerServerStackFixture = _l3ha.L3haPeerServerStackFixture
|
||||||
L3haDifferentHostServerStackFixture = _l3ha.L3haDifferentHostServerStackFixture
|
L3haDifferentHostServerStackFixture = _l3ha.L3haDifferentHostServerStackFixture
|
||||||
L3haSameHostServerStackFixture = _l3ha.L3haSameHostServerStackFixture
|
L3haSameHostServerStackFixture = _l3ha.L3haSameHostServerStackFixture
|
||||||
|
@ -15,9 +15,11 @@ from __future__ import absolute_import
|
|||||||
|
|
||||||
import tobiko
|
import tobiko
|
||||||
from tobiko.openstack import neutron
|
from tobiko.openstack import neutron
|
||||||
|
from tobiko.openstack.stacks import _centos
|
||||||
from tobiko.openstack.stacks import _cirros
|
from tobiko.openstack.stacks import _cirros
|
||||||
from tobiko.openstack.stacks import _neutron
|
from tobiko.openstack.stacks import _neutron
|
||||||
from tobiko.openstack.stacks import _nova
|
from tobiko.openstack.stacks import _nova
|
||||||
|
from tobiko.openstack.stacks import _ubuntu
|
||||||
|
|
||||||
|
|
||||||
@neutron.skip_if_missing_networking_extensions('l3-ha')
|
@neutron.skip_if_missing_networking_extensions('l3-ha')
|
||||||
@ -27,7 +29,7 @@ class L3haNetworkStackFixture(_neutron.NetworkStackFixture):
|
|||||||
|
|
||||||
@neutron.skip_if_missing_networking_extensions('l3-ha')
|
@neutron.skip_if_missing_networking_extensions('l3-ha')
|
||||||
class L3haServerStackFixture(_cirros.CirrosServerStackFixture):
|
class L3haServerStackFixture(_cirros.CirrosServerStackFixture):
|
||||||
#: Heat stack for creating internal network with custom MTU value
|
#: Heat stack for creating internal network with L3HA enabled
|
||||||
network_stack = tobiko.required_setup_fixture(
|
network_stack = tobiko.required_setup_fixture(
|
||||||
L3haNetworkStackFixture)
|
L3haNetworkStackFixture)
|
||||||
|
|
||||||
@ -45,3 +47,13 @@ class L3haSameHostServerStackFixture(
|
|||||||
class L3haDifferentHostServerStackFixture(
|
class L3haDifferentHostServerStackFixture(
|
||||||
L3haPeerServerStackFixture, _nova.DifferentHostServerStackFixture):
|
L3haPeerServerStackFixture, _nova.DifferentHostServerStackFixture):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
class L3haCentosServerStackFixture(_centos.CentosServerStackFixture,
|
||||||
|
L3haServerStackFixture):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
class L3haUbuntuServerStackFixture(_ubuntu.UbuntuServerStackFixture,
|
||||||
|
L3haServerStackFixture):
|
||||||
|
pass
|
||||||
|
@ -88,3 +88,19 @@ class PortTest(testtools.TestCase):
|
|||||||
class L3HAPortTest(PortTest):
|
class L3HAPortTest(PortTest):
|
||||||
#: Resources stack with floating IP and Nova server
|
#: Resources stack with floating IP and Nova server
|
||||||
stack = tobiko.required_setup_fixture(stacks.L3haServerStackFixture)
|
stack = tobiko.required_setup_fixture(stacks.L3haServerStackFixture)
|
||||||
|
|
||||||
|
|
||||||
|
@neutron.skip_if_missing_networking_extensions('l3-ha')
|
||||||
|
@neutron.skip_if_missing_networking_agents(binary='neutron-l3-agent',
|
||||||
|
count=2)
|
||||||
|
class CentosServerL3HAPortTestWith(PortTest):
|
||||||
|
#: Resources stack with floating IP and Nova server
|
||||||
|
stack = tobiko.required_setup_fixture(stacks.L3haCentosServerStackFixture)
|
||||||
|
|
||||||
|
|
||||||
|
@neutron.skip_if_missing_networking_extensions('l3-ha')
|
||||||
|
@neutron.skip_if_missing_networking_agents(binary='neutron-l3-agent',
|
||||||
|
count=2)
|
||||||
|
class UbuntuServerL3HAPortTestWith(PortTest):
|
||||||
|
#: Resources stack with floating IP and Nova server
|
||||||
|
stack = tobiko.required_setup_fixture(stacks.L3haUbuntuServerStackFixture)
|
||||||
|
Loading…
Reference in New Issue
Block a user