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_vnfsdk | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) mode change 100644 => 100755 bootstrap/vagrant-onap/tests/test_vnfsdk (limited to 'bootstrap/vagrant-onap/tests/test_vnfsdk') diff --git a/bootstrap/vagrant-onap/tests/test_vnfsdk b/bootstrap/vagrant-onap/tests/test_vnfsdk old mode 100644 new mode 100755 index 250a9fcc5..6f37904a1 --- a/bootstrap/vagrant-onap/tests/test_vnfsdk +++ b/bootstrap/vagrant-onap/tests/test_vnfsdk @@ -9,7 +9,7 @@ covered_functions=( # test_clone_all_vnfsdk_repos() - Verify the cloning of VNFSDK source repo. function test_clone_all_vnfsdk_repos { - clone_all_vnfsdk_repos + clone_repos "vnfsdk" asserts_file_exist $vnfsdk_src_folder/compliance/veslibrary/README asserts_file_exist $vnfsdk_src_folder/functest/pom.xml @@ -22,8 +22,8 @@ function test_clone_all_vnfsdk_repos { # test_compile_all_vnfsdk_repos () - Verify if VNFSDK source repo compiles correctly. function test_compile_all_vnfsdk_repos { - clone_all_vnfsdk_repos - compile_all_vnfsdk_repos + clone_repos "vnfsdk" + compile_repos "vnfsdk" asserts_file_exist $vnfsdk_src_folder/lctest/lifecycle-test/target/lifecycle-test-service-1.0.0-SNAPSHOT.war asserts_file_exist $vnfsdk_src_folder/pkgtools/target/vnf-sdk-pkgtools-1.0.0-SNAPSHOT.zip @@ -33,7 +33,7 @@ function test_compile_all_vnfsdk_repos { # test_get_vnfsdk_images() - Verify that the VNFSDK images are created or retrieved function test_get_vnfsdk_images { - clone_all_vnfsdk_repos + clone_repos "vnfsdk" get_vnfsdk_images asserts_image refrepo:1.0-STAGING-latest @@ -42,7 +42,7 @@ function test_get_vnfsdk_images { # test_install_vnfsdk() - Verify that VNFSDK docker images are running. function test_install_vnfsdk { - clone_all_vnfsdk_repos + clone_repos "vnfsdk" get_vnfsdk_images install_vnfsdk -- cgit 1.2.3-korg