Merge "Disable VPNaaS functional tests in the neutronclient gate"
This commit is contained in:
@@ -13,10 +13,15 @@
|
|||||||
from neutronclient.tests.functional import base
|
from neutronclient.tests.functional import base
|
||||||
|
|
||||||
|
|
||||||
class SimpleReadOnlyNeutronClientTest(base.ClientTestBase):
|
class SimpleReadOnlyNeutronFwv1ClientTest(base.ClientTestBase):
|
||||||
|
|
||||||
"""Tests for FWaaS v1 based client commands that are read only"""
|
"""Tests for FWaaS v1 based client commands that are read only"""
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
super(SimpleReadOnlyNeutronFwv1ClientTest, self).setUp()
|
||||||
|
if not self.is_extension_enabled('fwaas'):
|
||||||
|
self.skipTest('FWaaS is not enabled')
|
||||||
|
|
||||||
def test_neutron_firewall_list(self):
|
def test_neutron_firewall_list(self):
|
||||||
firewall_list = self.parser.listing(self.neutron
|
firewall_list = self.parser.listing(self.neutron
|
||||||
('firewall-list'))
|
('firewall-list'))
|
||||||
|
|||||||
@@ -25,6 +25,10 @@ class SimpleReadOnlyNeutronVpnClientTest(base.ClientTestBase):
|
|||||||
* with and without optional parameters
|
* with and without optional parameters
|
||||||
* initially just check return codes, and later test command outputs
|
* initially just check return codes, and later test command outputs
|
||||||
"""
|
"""
|
||||||
|
def setUp(self):
|
||||||
|
super(SimpleReadOnlyNeutronVpnClientTest, self).setUp()
|
||||||
|
if not self.is_extension_enabled('vpnaas'):
|
||||||
|
self.skipTest('VPNaaS is not enabled')
|
||||||
|
|
||||||
def test_neutron_vpn_ikepolicy_list(self):
|
def test_neutron_vpn_ikepolicy_list(self):
|
||||||
ikepolicy = self.parser.listing(self.neutron('vpn-ikepolicy-list'))
|
ikepolicy = self.parser.listing(self.neutron('vpn-ikepolicy-list'))
|
||||||
|
|||||||
@@ -72,3 +72,10 @@ class ClientTestBase(base.ClientTestBase):
|
|||||||
self._non_admin_clients = self._get_clients_from_os_cloud_config(
|
self._non_admin_clients = self._get_clients_from_os_cloud_config(
|
||||||
cloud='devstack')
|
cloud='devstack')
|
||||||
return self._non_admin_clients.neutron(*args, **kwargs)
|
return self._non_admin_clients.neutron(*args, **kwargs)
|
||||||
|
|
||||||
|
def is_extension_enabled(self, extension_alias):
|
||||||
|
extensions = self.parser.listing(self.neutron('ext-list'))
|
||||||
|
for extension in extensions:
|
||||||
|
if extension_alias in extension['alias']:
|
||||||
|
return True
|
||||||
|
return False
|
||||||
|
|||||||
@@ -22,7 +22,6 @@ ${config}
|
|||||||
if [ "$VENV" == "functional-adv-svcs" ]
|
if [ "$VENV" == "functional-adv-svcs" ]
|
||||||
then
|
then
|
||||||
load_rc_hook fwaas
|
load_rc_hook fwaas
|
||||||
load_rc_hook vpnaas
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
$BASE/new/devstack-gate/devstack-vm-gate.sh
|
$BASE/new/devstack-gate/devstack-vm-gate.sh
|
||||||
|
|||||||
Reference in New Issue
Block a user