From f1f1ba5dac1b531c346758072c798ceb511100b3 Mon Sep 17 00:00:00 2001 From: Victor Morales Date: Mon, 20 Nov 2017 16:38:28 -0800 Subject: Refactor clone and compile functions The clone_all_* and compile_all_* functions share same instructions for performing their functionality. This change pretends to reduce the duplication of the code. Change-Id: Ief63a5a58c79af85c829602b0451637424659438 Signed-off-by: Victor Morales Issue-Id: INT-339 --- bootstrap/vagrant-onap/tests/test_multicloud | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) mode change 100644 => 100755 bootstrap/vagrant-onap/tests/test_multicloud (limited to 'bootstrap/vagrant-onap/tests/test_multicloud') diff --git a/bootstrap/vagrant-onap/tests/test_multicloud b/bootstrap/vagrant-onap/tests/test_multicloud old mode 100644 new mode 100755 index 62a010ad0..23e12b1ac --- a/bootstrap/vagrant-onap/tests/test_multicloud +++ b/bootstrap/vagrant-onap/tests/test_multicloud @@ -9,7 +9,7 @@ covered_functions=( # test_clone_multicloud_repos() - Verify that Multi Cloud repositories are cloned properly function test_clone_multicloud_repos { - clone_multicloud_repos + clone_repos "multicloud" #asserts_file_exist $multicloud_src_folder/ asserts_file_exist $multicloud_src_folder/framework/pom.xml @@ -21,8 +21,8 @@ function test_clone_multicloud_repos { # test_compile_multicloud_repos() - function test_compile_multicloud_repos { - clone_multicloud_repos - compile_multicloud_repos + clone_repos "multicloud" + compile_repos "multicloud" asserts_file_exist $multicloud_src_folder/openstack/newton/target/multicloud-openstack-newton-1.0.0-SNAPSHOT.zip asserts_file_exist $multicloud_src_folder/openstack/ocata/target/multicloud-openstack-ocata-1.0.0-SNAPSHOT.zip @@ -31,7 +31,7 @@ function test_compile_multicloud_repos { # test_get_multicloud_images() - function test_get_multicloud_images { - clone_multicloud_repos + clone_repos "multicloud" get_multicloud_images asserts_image onap/multicloud/openstack-$openstack_release @@ -39,7 +39,7 @@ function test_get_multicloud_images { # test_install_multicloud() - Verify the built and start of Multi Cloud services function test_install_multicloud { - clone_multicloud_repos + clone_repos "multicloud" get_multicloud_images install_multicloud -- cgit 1.2.3-korg