blob: 4767152e9e48aac775a2debeaf747ca052c56cdc [file] [log] [blame]
Victor Morales000de532017-08-31 17:28:10 -05001#!/bin/bash
2
3source /var/onap_tests/_test_base
4source /var/onap/multicloud
5
6covered_functions=(
7"clone_multicloud_repos" "compile_multicloud_repos" "install_multicloud"
8)
9
10# test_clone_multicloud_repos() - Verify that Multi Cloud repositories are cloned properly
11function test_clone_multicloud_repos {
12 clone_multicloud_repos
13
14 asserts_file_exist $multicloud_src_folder/framework/multivimbroker/pom.xml
15 asserts_file_exist $multicloud_src_folder/openstack/pom.xml
16 asserts_file_exist $multicloud_src_folder/openstack/vmware/pom.xml
17}
18
19# test_compile_multicloud_repos() -
20function test_compile_multicloud_repos {
21 clone_multicloud_repos
22 compile_multicloud_repos
23
24 asserts_file_exist $multicloud_src_folder/openstack/newton/target/multicloud-openstack-newton-1.0.0-SNAPSHOT.zip
25 asserts_file_exist $multicloud_src_folder/openstack/vmware/vio/target/multivimdriver-vio-1.1.0-SNAPSHOT.zip
26}
27
28# test_install_multicloud() - Verify the built and start of Multi Cloud services
29function test_install_multicloud {
30 clone_multicloud_repos
31 install_multicloud
32}
33
34if [ "$1" != '*' ]; then
35 unset covered_functions
36 covered_functions=$1
37fi
38main "${covered_functions[@]}"