aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap/vagrant-onap/tests/test_aai
diff options
context:
space:
mode:
authorVictor Morales <victor.morales@intel.com>2018-03-13 12:36:55 -0700
committerGary Wu <gary.i.wu@huawei.com>2018-03-15 16:58:22 +0000
commitdf17a7ff9ba569227e8a2b5b1863800bbb8e1806 (patch)
tree749011aaf1b514e17c31edd9c12252a95f0aec18 /bootstrap/vagrant-onap/tests/test_aai
parent1393fc2533cae1271126498f1661dec893922dae (diff)
Deprecate vagrant-onap tool
The vagrant-onap tool needs to be moved to its own repo to have better control of versions and autonomy. This change removes the project from integration repository. Change-Id: I90bd4505a9fc7376c31a780aa1b833ee2663af3e Signed-off-by: Victor Morales <victor.morales@intel.com> Depends-On: I79df8c35fccaa266a789217d441a6cf1183bd42a Issue-ID: INT-441
Diffstat (limited to 'bootstrap/vagrant-onap/tests/test_aai')
-rwxr-xr-xbootstrap/vagrant-onap/tests/test_aai100
1 files changed, 0 insertions, 100 deletions
diff --git a/bootstrap/vagrant-onap/tests/test_aai b/bootstrap/vagrant-onap/tests/test_aai
deleted file mode 100755
index dd027d2bc..000000000
--- a/bootstrap/vagrant-onap/tests/test_aai
+++ /dev/null
@@ -1,100 +0,0 @@
-#!/bin/bash
-
-source /var/onap_tests/_test_base
-source /var/onap/aai
-
-covered_functions=(
-#"install_hadoop" "install_haproxy" "clone_all_aai_repos" "compile_aai_repos" "setup_titan" "start_aai_microservices" "install_hbase" "install_ajsc_aai" "install_model_loader"
-"install_hadoop" "install_haproxy" "clone_all_aai_repos" "compile_aai_repos" "setup_titan" "install_hbase"
-)
-
-# test_install_hadoop() - Verify that Hadoop is downloaded and started properly
-function test_install_hadoop {
- install_hadoop
-
- asserts_file_exist /opt/hadoop/current/titan-1.0.0-hadoop1/bin/titan.sh
- asserts_java_process Elasticsearch
- asserts_java_process GremlinServer
- asserts_java_process CassandraDaemon
-}
-
-# test_install_haproxy() - Verify that HAProxy is installed properly
-function test_install_haproxy {
- install_haproxy
-
- asserts_installed_package haproxy
- asserts_process haproxy
-}
-
-# test_clone_all_aai_repos() - Verify that all the AAI Repos are cloned
-function test_clone_all_aai_repos {
- clone_repos "aai"
-
- asserts_file_exist ${src_folders[aai]}/aai-common/pom.xml
- asserts_file_exist ${src_folders[aai]}/aai-config/cookbooks/aai-resources/runlist-aai-resources.json
- asserts_file_exist ${src_folders[aai]}/aai-data/environments/solo.json
- asserts_file_exist ${src_folders[aai]}/aai-service/pom.xml
- asserts_file_exist ${src_folders[aai]}/babel/README.md
- asserts_file_exist ${src_folders[aai]}/champ/pom.xml
- asserts_file_exist ${src_folders[aai]}/data-router/pom.xml
- asserts_file_exist ${src_folders[aai]}/esr-gui/pom.xml
- asserts_file_exist ${src_folders[aai]}/esr-server/pom.xml
- asserts_file_exist ${src_folders[aai]}/gizmo/pom.xml
- asserts_file_exist ${src_folders[aai]}/logging-service/pom.xml
- asserts_file_exist ${src_folders[aai]}/model-loader/pom.xml
- asserts_file_exist ${src_folders[aai]}/resources/pom.xml
- asserts_file_exist ${src_folders[aai]}/rest-client/pom.xml
- asserts_file_exist ${src_folders[aai]}/router-core/pom.xml
- asserts_file_exist ${src_folders[aai]}/search-data-service/pom.xml
- asserts_file_exist ${src_folders[aai]}/sparky-be/pom.xml
- asserts_file_exist ${src_folders[aai]}/sparky-fe/pom.xml
- asserts_file_exist ${src_folders[aai]}/test-config/docker-compose-app.yml
- asserts_file_exist ${src_folders[aai]}/traversal/pom.xml
-}
-
-# test_compile_aai_repos() - Verify that all the AAI Repositories complile properly
-function test_compile_aai_repos {
- clone_repos "aai"
- compile_aai_repos
-
- for common in annotations auth core schema utils; do
- asserts_file_exist ${src_folders[aai]}/aai-common/aai-$common/target/aai-$common-1.1.0-SNAPSHOT.jar
- done
-
- for service in common-logging eelf-logging logging-api; do
- asserts_file_exist ${src_folders[aai]}/logging-service/$service/target/$service-1.1.0-SNAPSHOT.jar
- done
-
- asserts_file_exist ${src_folders[aai]}/resources/aai-resources/target/aai-resources.jar
- asserts_file_exist ${src_folders[aai]}/traversal/aai-traversal/target/traversal.jar
-}
-
-# test_setup_titan() - Verify that Titan Cassandra DB is up and running
-function test_setup_titan {
- clone_repos "aai"
- install_hadoop
- setup_titan
-
- # TODO(electrocucaracha): Validate the DB creation
-}
-
-# test_start_aai_microservices() - Verify that AAI Resources and Traversal images works
-function test_start_aai_microservices {
- clone_repos "aai"
- start_aai_microservices
-
- # TODO(electrocucaracha): Investigate how to run AAI microservices in background
-}
-
-# test_install_hbase() - Verify that AAI HBase service is up and running properly
-function test_install_hbase {
- install_hbase
-
- asserts_image_running aai-hbase-${hbase_version}
-}
-
-if [ "$1" != '*' ]; then
- unset covered_functions
- covered_functions=$1
-fi
-main "${covered_functions[@]}"