From ce890574020076b656c11bf1514478f00afaf208 Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Thu, 26 Nov 2020 17:31:58 +0100 Subject: Allow running cloudify without tenant network resources. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 (cherry picked from commit 09be8310be708661f2782e6af1d1d84ac0a52946) --- functest/ci/testcases.yaml | 8 ++++++++ functest/core/cloudify.py | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'functest') diff --git a/functest/ci/testcases.yaml b/functest/ci/testcases.yaml index 513b2318a..cb9bbade9 100644 --- a/functest/ci/testcases.yaml +++ b/functest/ci/testcases.yaml @@ -805,6 +805,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 @@ -817,6 +819,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 @@ -827,6 +831,8 @@ tiers: blocking: false description: >- This test case is vRouter testing. + dependencies: + - NO_TENANT_NETWORK: '^(?![tT]rue$)' run: name: vyos_vrouter @@ -838,5 +844,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 diff --git a/functest/core/cloudify.py b/functest/core/cloudify.py index 6b0c9def7..9e80f4b60 100644 --- a/functest/core/cloudify.py +++ b/functest/core/cloudify.py @@ -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" -- cgit 1.2.3-korg