aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap/vagrant-onap/tests/test_vnfsdk
diff options
context:
space:
mode:
authorVictor Morales <victor.morales@intel.com>2017-11-20 16:38:28 -0800
committerVictor Morales <victor.morales@intel.com>2017-11-20 16:38:28 -0800
commitf1f1ba5dac1b531c346758072c798ceb511100b3 (patch)
treea571f9e83be31abd3c63595c04a46dcd7e901a7d /bootstrap/vagrant-onap/tests/test_vnfsdk
parent25bfc6b99f73bd02047dcc13e64390140777402a (diff)
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
Diffstat (limited to 'bootstrap/vagrant-onap/tests/test_vnfsdk')
-rwxr-xr-x[-rw-r--r--]bootstrap/vagrant-onap/tests/test_vnfsdk10
1 files changed, 5 insertions, 5 deletions
diff --git a/bootstrap/vagrant-onap/tests/test_vnfsdk b/bootstrap/vagrant-onap/tests/test_vnfsdk
index 250a9fcc5..6f37904a1 100644..100755
--- 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