aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap/vagrant-onap/tests/test_multicloud
diff options
context:
space:
mode:
authorGary Wu <gary.i.wu@huawei.com>2017-09-01 16:49:09 +0000
committerGerrit Code Review <gerrit@onap.org>2017-09-01 16:49:09 +0000
commitb49dc6b5ba9b8c893dcdbbed296a6633cefbf906 (patch)
tree56cf26ce216eee5b36f4161ed91e82dad8835441 /bootstrap/vagrant-onap/tests/test_multicloud
parent549761b03ff128fc2472715c57d4afb6ddb6bea4 (diff)
parent000de533553068dae03f9e83bd285b9059b63ca3 (diff)
Merge "Add MultCloud/MultiVIM support"
Diffstat (limited to 'bootstrap/vagrant-onap/tests/test_multicloud')
-rw-r--r--bootstrap/vagrant-onap/tests/test_multicloud38
1 files changed, 38 insertions, 0 deletions
diff --git a/bootstrap/vagrant-onap/tests/test_multicloud b/bootstrap/vagrant-onap/tests/test_multicloud
new file mode 100644
index 000000000..4767152e9
--- /dev/null
+++ b/bootstrap/vagrant-onap/tests/test_multicloud
@@ -0,0 +1,38 @@
+#!/bin/bash
+
+source /var/onap_tests/_test_base
+source /var/onap/multicloud
+
+covered_functions=(
+"clone_multicloud_repos" "compile_multicloud_repos" "install_multicloud"
+)
+
+# test_clone_multicloud_repos() - Verify that Multi Cloud repositories are cloned properly
+function test_clone_multicloud_repos {
+ clone_multicloud_repos
+
+ asserts_file_exist $multicloud_src_folder/framework/multivimbroker/pom.xml
+ asserts_file_exist $multicloud_src_folder/openstack/pom.xml
+ asserts_file_exist $multicloud_src_folder/openstack/vmware/pom.xml
+}
+
+# test_compile_multicloud_repos() -
+function test_compile_multicloud_repos {
+ clone_multicloud_repos
+ compile_multicloud_repos
+
+ asserts_file_exist $multicloud_src_folder/openstack/newton/target/multicloud-openstack-newton-1.0.0-SNAPSHOT.zip
+ asserts_file_exist $multicloud_src_folder/openstack/vmware/vio/target/multivimdriver-vio-1.1.0-SNAPSHOT.zip
+}
+
+# test_install_multicloud() - Verify the built and start of Multi Cloud services
+function test_install_multicloud {
+ clone_multicloud_repos
+ install_multicloud
+}
+
+if [ "$1" != '*' ]; then
+ unset covered_functions
+ covered_functions=$1
+fi
+main "${covered_functions[@]}"