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_vid | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) mode change 100644 => 100755 bootstrap/vagrant-onap/tests/test_vid (limited to 'bootstrap/vagrant-onap/tests/test_vid') diff --git a/bootstrap/vagrant-onap/tests/test_vid b/bootstrap/vagrant-onap/tests/test_vid old mode 100644 new mode 100755 index 731d005a3..dc6adba99 --- a/bootstrap/vagrant-onap/tests/test_vid +++ b/bootstrap/vagrant-onap/tests/test_vid @@ -9,7 +9,7 @@ covered_functions=( # test_clone_all_vid_repos() - Verifies that VID repositories are retrieved properly function test_clone_all_vid_repos { - clone_all_vid_repos + clone_repos "vid" asserts_file_exist $vid_src_folder/pom.xml asserts_file_exist $vid_src_folder/asdcclient/pom.xml @@ -17,8 +17,8 @@ function test_clone_all_vid_repos { # test_compile_all_vid_repos() - Verifies that VID source code is compiled properly function test_compile_all_vid_repos { - clone_all_vid_repos - compile_all_vid_repos + clone_repos "vid" + compile_repos "vid" asserts_file_exist $vid_src_folder/asdcclient/target/asdcclient-1.0.2-SNAPSHOT.jar asserts_file_exist $vid_src_folder/epsdk-app-onap/target/vid.war @@ -27,7 +27,7 @@ function test_compile_all_vid_repos { # test_get_vid_images() - Verifies that VID Docker images are built properly function test_get_vid_images { - clone_all_vid_repos + clone_repos "vid" get_vid_images asserts_image openecomp/vid @@ -36,7 +36,7 @@ function test_get_vid_images { # test_install_vid() - Verifies taht VID services are up and running function test_install_vid { - clone_all_vid_repos + clone_repos "vid" get_vid_images install_vid -- cgit 1.2.3-korg