aboutsummaryrefslogtreecommitdiffstats
path: root/functest/core
diff options
context:
space:
mode:
authorvalentin boucher <valentin.boucher@orange.com>2017-02-13 14:49:40 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-02-13 14:49:40 +0000
commit8b9cd64a7b26a8259fd39801ebe77089a10e33d5 (patch)
tree7bc398b0216d6d104bb8e224e7a3e0de4fd88050 /functest/core
parent61322cab353e2553e0af2bdb35b482c33683312f (diff)
parent8b35da62ccae000db2ff665b622b3808b2537844 (diff)
Merge "[WIP] update cloudify_ims case"
Diffstat (limited to 'functest/core')
-rw-r--r--functest/core/vnf_base.py26
1 files changed, 0 insertions, 26 deletions
diff --git a/functest/core/vnf_base.py b/functest/core/vnf_base.py
index 4d019858a..44b4ae04c 100644
--- a/functest/core/vnf_base.py
+++ b/functest/core/vnf_base.py
@@ -7,12 +7,10 @@
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
-import os
import time
import inspect
-
import functest.utils.functest_logger as ft_logger
import functest.utils.openstack_utils as os_utils
import functest.utils.functest_utils as ft_utils
@@ -161,30 +159,6 @@ class VnfOnBoardingBase(base.TestcaseBase):
"username": self.tenant_name,
"password": self.tenant_name,
})
- self.glance_client = os_utils.get_glance_client(self.creds)
- self.logger.info("Upload some OS images if it doesn't exist")
-
- temp_dir = os.path.join(self.data_dir, "tmp/")
- for image_name, image_url in self.images.iteritems():
- image_id = os_utils.get_image_id(self.glance_client, image_name)
-
- if image_id == '':
- self.logger.info("""%s image doesn't exist on glance repository. Try
- downloading this image and upload on glance !""" % image_name)
- image_id = os_utils.download_and_add_image_on_glance(
- self.glance_client, image_name, image_url, temp_dir)
-
- if image_id == '':
- self.step_failure(
- "Failed to find or upload required OS "
- "image for this deployment")
-
- self.logger.info("Update security group quota for this tenant")
-
- if not os_utils.update_sg_quota(self.neutron_client,
- tenant_id, 50, 100):
- self.step_failure("Failed to update security group quota" +
- " for tenant " + self.tenant_name)
# orchestrator is not mandatory to dpeloy and test VNF
def deploy_orchestrator(self, **kwargs):