aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_multicloud
diff options
context:
space:
mode:
authorVictor Morales <victor.morales@intel.com>2018-03-13 12:26:08 -0700
committerVictor Morales <victor.morales@intel.com>2018-03-13 12:26:08 -0700
commit4d7590ed7425a94c0f87a8461548c2461d79a710 (patch)
tree083ffc33a4cd6d8eff42deeea1da0b50c49efdfe /tests/test_multicloud
parentceb22354fcb078e8991a66dc9bc11dd5f21e77f4 (diff)
Migrate vagrant-onap to devtool repo
This change covers the migration of the vagrant-onap tool's code which was located under integration repo to devtool's repository. The tool was renamed to avoid misunderstandings about its goals. Change-Id: I79df8c35fccaa266a789217d441a6cf1183bd42a Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: INT-441
Diffstat (limited to 'tests/test_multicloud')
-rwxr-xr-xtests/test_multicloud54
1 files changed, 54 insertions, 0 deletions
diff --git a/tests/test_multicloud b/tests/test_multicloud
new file mode 100755
index 0000000..1b5b85d
--- /dev/null
+++ b/tests/test_multicloud
@@ -0,0 +1,54 @@
+#!/bin/bash
+
+source /var/onap_tests/_test_base
+source /var/onap/multicloud
+
+covered_functions=(
+"clone_multicloud_repos" "compile_multicloud_repos" "get_multicloud_images" "install_multicloud"
+)
+
+# test_clone_multicloud_repos() - Verify that Multi Cloud repositories are cloned properly
+function test_clone_multicloud_repos {
+ clone_repos "multicloud"
+
+ #asserts_file_exist ${src_folders[multicloud]}/
+ asserts_file_exist ${src_folders[multicloud]}/framework/pom.xml
+ asserts_file_exist ${src_folders[multicloud]}/openstack/pom.xml
+ asserts_file_exist ${src_folders[multicloud]}/openstack/vmware/pom.xml
+ asserts_file_exist ${src_folders[multicloud]}/openstack/windriver/pom.xml
+ #asserts_file_exist ${src_folders[multicloud]}/azure/
+}
+
+# test_compile_multicloud_repos() -
+function test_compile_multicloud_repos {
+ clone_repos "multicloud"
+ compile_repos "multicloud"
+
+ asserts_file_exist ${src_folders[multicloud]}/openstack/newton/target/multicloud-openstack-newton-1.0.0-SNAPSHOT.zip
+ asserts_file_exist ${src_folders[multicloud]}/openstack/ocata/target/multicloud-openstack-ocata-1.0.0-SNAPSHOT.zip
+ asserts_file_exist ${src_folders[multicloud]}/openstack/windriver/target/multicloud-openstack-windriver-1.0.0-SNAPSHOT.zip
+}
+
+# test_get_multicloud_images() -
+function test_get_multicloud_images {
+ clone_repos "multicloud"
+ get_multicloud_images
+
+ asserts_image onap/multicloud/openstack-$openstack_release
+}
+
+# test_install_multicloud() - Verify the built and start of Multi Cloud services
+function test_install_multicloud {
+ clone_repos "multicloud"
+ get_multicloud_images
+ install_multicloud
+
+ # NOTE(electrocucaracha): Depends on https://gerrit.onap.org/r/#/c/23631/
+ asserts_http_status_code http://127.0.0.1:9003/api/multicloud-$openstack_release/v0/swagger.json
+}
+
+if [ "$1" != '*' ]; then
+ unset covered_functions
+ covered_functions=$1
+fi
+main "${covered_functions[@]}"