diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2018-06-17 13:36:12 +0200 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2018-06-18 17:41:44 +0200 |
commit | 50049c516d0346a072c69a66f9f5ce173718bc92 (patch) | |
tree | c877c023bba3ff6c62803ea418f5e14314c82018 | |
parent | f3b6c2e235476e29eca1d744ba403fdeadc0f5fa (diff) |
Fix invalid method names in vnfs
Change-Id: Icff1a53ffd7b59d46543b79571b45872a9f243c3
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
-rw-r--r-- | functest/opnfv_tests/vnf/epc/juju_epc.py | 6 | ||||
-rw-r--r-- | functest/opnfv_tests/vnf/ims/cloudify_ims.py | 11 |
2 files changed, 8 insertions, 9 deletions
diff --git a/functest/opnfv_tests/vnf/epc/juju_epc.py b/functest/opnfv_tests/vnf/epc/juju_epc.py index 224d71114..445789ff5 100644 --- a/functest/opnfv_tests/vnf/epc/juju_epc.py +++ b/functest/opnfv_tests/vnf/epc/juju_epc.py @@ -130,7 +130,7 @@ class JujuEpc(vnf.VnfOnBoarding): self.res_dir = os.path.join( getattr(config.CONF, 'dir_results'), self.case_name) - def _bypass_juju_network_discovery_bug(self, name): + def _bypass_juju_netdiscovery_bug(self, name): user_creator = OpenStackUser( self.snaps_creds, UserConfig( @@ -157,7 +157,7 @@ class JujuEpc(vnf.VnfOnBoarding): def _register_credentials_v2(self): self.__logger.info("Creating Credentials for Abot-epc .....") - user_creator = self._bypass_juju_network_discovery_bug( + user_creator = self._bypass_juju_netdiscovery_bug( 'juju_network_discovery_bug') snaps_creds = user_creator.get_os_creds(self.snaps_creds.project_name) self.__logger.debug("snaps creds: %s", snaps_creds) @@ -175,7 +175,7 @@ class JujuEpc(vnf.VnfOnBoarding): def _register_credentials_v3(self): self.__logger.info("Creating Credentials for Abot-epc .....") - user_creator = self._bypass_juju_network_discovery_bug( + user_creator = self._bypass_juju_netdiscovery_bug( 'juju_network_discovery_bug') snaps_creds = user_creator.get_os_creds(self.snaps_creds.project_name) self.__logger.debug("snaps creds: %s", snaps_creds) diff --git a/functest/opnfv_tests/vnf/ims/cloudify_ims.py b/functest/opnfv_tests/vnf/ims/cloudify_ims.py index bc4242235..1dce744da 100644 --- a/functest/opnfv_tests/vnf/ims/cloudify_ims.py +++ b/functest/opnfv_tests/vnf/ims/cloudify_ims.py @@ -348,11 +348,10 @@ class CloudifyIms(clearwater_ims_base.ClearwaterOnBoardingBase): descriptor.get('name'), self.vnf.get('inputs')) - wait_for_execution(cfy_client, - _get_deployment_environment_creation_execution( - cfy_client, descriptor.get('name')), - self.__logger, - timeout=300) + wait_for_execution( + cfy_client, + get_execution_id(cfy_client, descriptor.get('name')), + self.__logger, timeout=300) self.__logger.info("Start the VNF Instance deployment") execution = cfy_client.executions.start(descriptor.get('name'), @@ -530,7 +529,7 @@ def wait_for_execution(client, execution, logger, timeout=3600, ): return execution -def _get_deployment_environment_creation_execution(client, deployment_id): +def get_execution_id(client, deployment_id): """ Get the execution id of a env preparation. |