Allow running cloudify without tenant network resources. 12/71512/1
authorCédric Ollivier <cedric.ollivier@orange.com>
Thu, 26 Nov 2020 16:31:58 +0000 (17:31 +0100)
committerCédric Ollivier <cedric.ollivier@orange.com>
Thu, 26 Nov 2020 16:33:21 +0000 (17:33 +0100)
It fits the Airship deployment where there is neither tenant networks
nor floating ips. It skips all VNF test cases as they ask for tenant
resources.

Change-Id: Ib5f2074314ff940595ce1387912055fa916a1f79
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 09be8310be708661f2782e6af1d1d84ac0a52946)

docker/vnf/testcases.yaml
functest/ci/testcases.yaml
functest/core/cloudify.py

index 0d21c63..6b483af 100644 (file)
@@ -23,6 +23,8 @@ tiers:
                     This test case deploys an OpenSource vIMS solution from
                     Clearwater using the Cloudify orchestrator. It also runs
                     some signaling traffic.
+                dependencies:
+                    - NO_TENANT_NETWORK: '^(?![tT]rue$)'
                 run:
                     name: cloudify_ims
 
@@ -35,6 +37,8 @@ tiers:
                     This test case deploys an OpenSource vIMS solution from
                     Clearwater using the OpenStack Heat orchestrator.
                     It also runs some signaling traffic.
+                dependencies:
+                    - NO_TENANT_NETWORK: '^(?![tT]rue$)'
                 run:
                     name: heat_ims
 
@@ -45,6 +49,8 @@ tiers:
                 blocking: false
                 description: >-
                     This test case is vRouter testing.
+                dependencies:
+                    - NO_TENANT_NETWORK: '^(?![tT]rue$)'
                 run:
                     name: vyos_vrouter
 
@@ -56,5 +62,7 @@ tiers:
                 description: >-
                     vEPC validation with Juju as VNF manager and ABoT as test
                     executor.
+                dependencies:
+                    - NO_TENANT_NETWORK: '^(?![tT]rue$)'
                 run:
                     name: juju_epc
index 5c3fe24..598836f 100644 (file)
@@ -925,7 +925,7 @@ tiers:
                     Clearwater using the Cloudify orchestrator. It also runs
                     some signaling traffic.
                 dependencies:
-                    - DEPLOY_SCENARIO: 'os-.*-nofeature-.*ha'
+                    - NO_TENANT_NETWORK: '^(?![tT]rue$)'
                 run:
                     name: cloudify_ims
 
@@ -938,6 +938,8 @@ tiers:
                     This test case deploys an OpenSource vIMS solution from
                     Clearwater using the OpenStack Heat orchestrator.
                     It also runs some signaling traffic.
+                dependencies:
+                    - NO_TENANT_NETWORK: '^(?![tT]rue$)'
                 run:
                     name: heat_ims
 
@@ -948,6 +950,8 @@ tiers:
                 blocking: false
                 description: >-
                     This test case is vRouter testing.
+                dependencies:
+                    - NO_TENANT_NETWORK: '^(?![tT]rue$)'
                 run:
                     name: vyos_vrouter
 
@@ -959,5 +963,7 @@ tiers:
                 description: >-
                     vEPC validation with Juju as VNF manager and ABoT as test
                     executor.
+                dependencies:
+                    - NO_TENANT_NETWORK: '^(?![tT]rue$)'
                 run:
                     name: juju_epc
index 0fb4f6e..b5a9594 100644 (file)
@@ -77,7 +77,8 @@ class Cloudify(singlevm.SingleVm2):
         self.__logger.debug("output:\n%s", stdout.read().decode("utf-8"))
         self.__logger.debug("error:\n%s", stderr.read().decode("utf-8"))
         self.cfy_client = CloudifyClient(
-            host=self.fip.floating_ip_address,
+            host=self.fip.floating_ip_address if self.fip else (
+                self.sshvm.public_v4),
             username='admin', password='admin', tenant='default_tenant')
         self.__logger.info("Attemps running status of the Manager")
         secret_key = "foo"