aboutsummaryrefslogtreecommitdiffstats
path: root/functest/opnfv_tests/openstack/rally
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2019-07-10 22:13:37 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2019-07-10 22:16:29 +0200
commita30e0c35f248cc9225e628e3a64723b2184d6087 (patch)
treee130e040c90fdafd5b8b36a7a852e4bf9fd250a4 /functest/opnfv_tests/openstack/rally
parent16bd94efa559df105c28b90c891c84088b0c651e (diff)
Allow scenarios without external network
It allows creating testcases leveraging on Functest scenarios without external network. Then Rally can verify network providers by only skipping NovaServers.boot_server_associate_and_dissociate_floating_ip Change-Id: I07a9348214f7557195c7201466f7e37b2b980206 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'functest/opnfv_tests/openstack/rally')
-rw-r--r--functest/opnfv_tests/openstack/rally/blacklist.yaml5
-rw-r--r--functest/opnfv_tests/openstack/rally/rally.py3
2 files changed, 8 insertions, 0 deletions
diff --git a/functest/opnfv_tests/openstack/rally/blacklist.yaml b/functest/opnfv_tests/openstack/rally/blacklist.yaml
index 77c514245..beed15cb9 100644
--- a/functest/opnfv_tests/openstack/rally/blacklist.yaml
+++ b/functest/opnfv_tests/openstack/rally/blacklist.yaml
@@ -28,3 +28,8 @@ functionality:
- no_net_trunk_service
tests:
- '^NeutronTrunk'
+ -
+ functions:
+ - no_floating_ip
+ tests:
+ - NovaServers.boot_server_associate_and_dissociate_floating_ip
diff --git a/functest/opnfv_tests/openstack/rally/rally.py b/functest/opnfv_tests/openstack/rally/rally.py
index 98b368b0d..efc2e784f 100644
--- a/functest/opnfv_tests/openstack/rally/rally.py
+++ b/functest/opnfv_tests/openstack/rally/rally.py
@@ -66,6 +66,7 @@ class RallyBase(singlevm.VmReady2):
visibility = 'public'
shared_network = True
+ allow_no_fip = True
def __init__(self, **kwargs):
"""Initialize RallyBase object."""
@@ -334,6 +335,8 @@ class RallyBase(singlevm.VmReady2):
func_list.append("no_migration")
if not self._network_trunk_supported():
func_list.append("no_net_trunk_service")
+ if not self.ext_net:
+ func_list.append("no_floating_ip")
if 'functionality' in black_list_yaml.keys():
for item in black_list_yaml['functionality']: