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 <victor.morales@intel.com>
Issue-Id: INT-339
diff --git a/bootstrap/vagrant-onap/tests/test_vvp b/bootstrap/vagrant-onap/tests/test_vvp
old mode 100644
new mode 100755
index f77fdf4..4762e1d
--- a/bootstrap/vagrant-onap/tests/test_vvp
+++ b/bootstrap/vagrant-onap/tests/test_vvp
@@ -9,7 +9,7 @@
# test_clone_all_vvp_repos() - Verify the cloning of VNFSDK source repo.
function test_clone_all_vvp_repos {
- clone_all_vvp_repos
+ clone_repos "vvp"
asserts_file_exist $vvp_src_folder/cms/pom.xml
asserts_file_exist $vvp_src_folder/devkit/LICENSE.TXT
@@ -25,15 +25,15 @@
# test_compile_all_vvp_repos () - Verify if VNFSDK source repo compiles correctly.
function test_compile_all_vvp_repos {
- clone_all_vvp_repos
- compile_all_vvp_repos
+ clone_repos "vvp"
+ compile_repos "vvp"
# asserts_file_exist $vvp_src_folder/
}
# test_get_vvp_images() - Verify that the VNFSDK images are created or retrieved
function test_get_vvp_images {
- clone_all_vvp_repos
+ clone_repos "vvp"
get_vvp_images
#asserts_image refrepo:latest
@@ -41,7 +41,7 @@
# test_install_vvp() - Verify that VNFSDK docker images are running.
function test_install_vvp {
- clone_all_vvp_repos
+ clone_repos "vvp"
get_vvp_images
install_vvp