aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap/vagrant-onap/tests
diff options
context:
space:
mode:
authorVictor Morales <victor.morales@intel.com>2017-08-31 17:28:10 -0500
committerVictor Morales <victor.morales@intel.com>2017-08-31 17:28:10 -0500
commit000de533553068dae03f9e83bd285b9059b63ca3 (patch)
tree0c319b44e83af263a621cfe3a1cc9f8f567fb7b4 /bootstrap/vagrant-onap/tests
parenta3949e28940263815eb2793e7cae602d70a29290 (diff)
Add MultCloud/MultiVIM support
These changes allows to provide MultiCloud support. Change-Id: Ic420817df1471077f71290a926fd7e509c052d75 Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-Id: MULTICLOUD-53
Diffstat (limited to 'bootstrap/vagrant-onap/tests')
-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[@]}"