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_dcae | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) mode change 100644 => 100755 bootstrap/vagrant-onap/tests/test_dcae (limited to 'bootstrap/vagrant-onap/tests/test_dcae') diff --git a/bootstrap/vagrant-onap/tests/test_dcae b/bootstrap/vagrant-onap/tests/test_dcae old mode 100644 new mode 100755 index c6887cd78..a4697cefe --- a/bootstrap/vagrant-onap/tests/test_dcae +++ b/bootstrap/vagrant-onap/tests/test_dcae @@ -9,7 +9,7 @@ covered_functions=( # test_clone_all_dcae_repos() - Verifies that can retrieve DCAE repositories properly function test_clone_all_dcae_repos { - clone_all_dcae_repos + clone_repos "dcae" asserts_file_exist $dcae_src_folder/apod/README.md asserts_file_exist $dcae_src_folder/apod/analytics/pom.xml @@ -36,8 +36,8 @@ function test_clone_all_dcae_repos { # test_compile_all_dcae_repos() - Verify that the DCAE source code is compiled properly function test_compile_all_dcae_repos { - clone_all_dcae_repos - compile_all_dcae_repos + clone_repos "dcae" + compile_repos "dcae" asserts_file_exist $dcae_src_folder/collectors/ves/target/VESCollector-1.1.0-SNAPSHOT.jar @@ -83,8 +83,8 @@ function test_compile_all_dcae_repos { # test_get_dcae_images() - Function that verifies DCAE images are retrieved properly function test_get_dcae_images { - clone_all_dcae_repos - compile_all_dcae_repos + clone_repos "dcae" + compile_repos "dcae" get_dcae_images asserts_image openecomp/dcae-dmaapbc @@ -95,7 +95,7 @@ function test_get_dcae_images { # test_install_dcae() - Function that verifies that DCAE services are up and running function test_install_dcae { - clone_all_dcae_repos + clone_repos "dcae" compile_all_dcae_repos get_dcae_images install_dcae -- cgit 1.2.3-korg