Remove former allow_no_fip logic 21/71521/1
authorCédric Ollivier <cedric.ollivier@orange.com>
Thu, 26 Nov 2020 16:40:26 +0000 (17:40 +0100)
committerCédric Ollivier <cedric.ollivier@orange.com>
Thu, 26 Nov 2020 16:43:55 +0000 (17:43 +0100)
Change-Id: Ie6e45572e98108fca114a1d798f2d2a99ad41299
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit e28706a10c20bcb359f7d2283802ea9b4ef4bc66)

functest/core/tenantnetwork.py
functest/opnfv_tests/openstack/rally/rally.py

index 366477d..d15dd94 100644 (file)
@@ -149,7 +149,6 @@ class TenantNetwork1(testcase.TestCase):
     __logger = logging.getLogger(__name__)
     cidr = '192.168.120.0/24'
     shared_network = False
-    allow_no_fip = False
 
     def __init__(self, **kwargs):
         if "case_name" not in kwargs:
@@ -223,7 +222,7 @@ class TenantNetwork1(testcase.TestCase):
         Raises: expection on error
         """
         assert self.cloud
-        if not self.allow_no_fip:
+        if env.get('NO_TENANT_NETWORK').lower() != 'true':
             assert self.ext_net
         provider = {}
         if hasattr(config.CONF, '{}_network_type'.format(self.case_name)):
index c0999b1..1242e79 100644 (file)
@@ -68,7 +68,6 @@ class RallyBase(singlevm.VmReady2):
 
     visibility = 'public'
     shared_network = True
-    allow_no_fip = True
     task_timeout = 3600
 
     def __init__(self, **kwargs):