aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap/vagrant-onap/tests/test_aai
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_aai
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_aai')
-rwxr-xr-x[-rw-r--r--]bootstrap/vagrant-onap/tests/test_aai12
1 files changed, 6 insertions, 6 deletions
diff --git a/bootstrap/vagrant-onap/tests/test_aai b/bootstrap/vagrant-onap/tests/test_aai
index 10777d678..d9a48697c 100644..100755
--- a/bootstrap/vagrant-onap/tests/test_aai
+++ b/bootstrap/vagrant-onap/tests/test_aai
@@ -28,7 +28,7 @@ function test_install_haproxy {
# test_clone_all_aai_repos() - Verify that all the AAI Repos are cloned
function test_clone_all_aai_repos {
- clone_all_aai_repos
+ clone_repos "aai"
asserts_file_exist $aai_src_folder/aai-common/pom.xml
asserts_file_exist $aai_src_folder/aai-config/cookbooks/aai-resources/runlist-aai-resources.json
@@ -54,7 +54,7 @@ function test_clone_all_aai_repos {
# test_compile_aai_repos() - Verify that all the AAI Repositories complile properly
function test_compile_aai_repos {
- clone_all_aai_repos
+ clone_repos "aai"
compile_aai_repos
for common in annotations auth core schema utils; do
@@ -71,7 +71,7 @@ function test_compile_aai_repos {
# test_setup_titan() - Verify that Titan Cassandra DB is up and running
function test_setup_titan {
- clone_all_aai_repos
+ clone_repos "aai"
install_hadoop
setup_titan
@@ -80,7 +80,7 @@ function test_setup_titan {
# test_start_aai_microservices() - Verify that AAI Resources and Traversal images works
function test_start_aai_microservices {
- clone_all_aai_repos
+ clone_repos "aai"
start_aai_microservices
# TODO(electrocucaracha): Investigate how to run AAI microservices in background
@@ -95,7 +95,7 @@ function test_install_hbase {
# test_install_ajsc_aai() - Verify that AJSC AAI service is up and running properly
function test_install_ajsc_aai {
- clone_all_aai_repos
+ clone_repos "aai"
install_ajsc_aai
asserts_image_running openecomp/ajsc-aai
@@ -103,7 +103,7 @@ function test_install_ajsc_aai {
# test_install_model_loader() - Verify that Model AAI service is up and running properly
function test_install_model_loader {
- clone_all_aai_repos
+ clone_repos "aai"
install_model_loader
asserts_image openecomp/model-loader