blob: b0b67489402555aa40bcb72bd97bf0a832729b79 [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=(
Victor Morales6a919972017-09-28 18:29:54 -07007"clone_multicloud_repos" "compile_multicloud_repos" "get_multicloud_images" "install_multicloud"
Victor Morales000de532017-08-31 17:28:10 -05008)
9
10# test_clone_multicloud_repos() - Verify that Multi Cloud repositories are cloned properly
11function test_clone_multicloud_repos {
12 clone_multicloud_repos
13
Shashank Kumar Shankarf84c9a12017-10-23 11:08:31 -070014 #asserts_file_exist $multicloud_src_folder/
15 asserts_file_exist $multicloud_src_folder/framework/pom.xml
Victor Morales000de532017-08-31 17:28:10 -050016 asserts_file_exist $multicloud_src_folder/openstack/pom.xml
17 asserts_file_exist $multicloud_src_folder/openstack/vmware/pom.xml
Shashank Kumar Shankarf84c9a12017-10-23 11:08:31 -070018 asserts_file_exist $multicloud_src_folder/openstack/windriver/pom.xml
19 #asserts_file_exist $multicloud_src_folder/azure/
Victor Morales000de532017-08-31 17:28:10 -050020}
21
22# test_compile_multicloud_repos() -
23function test_compile_multicloud_repos {
24 clone_multicloud_repos
25 compile_multicloud_repos
26
27 asserts_file_exist $multicloud_src_folder/openstack/newton/target/multicloud-openstack-newton-1.0.0-SNAPSHOT.zip
Shashank Kumar Shankarf84c9a12017-10-23 11:08:31 -070028 asserts_file_exist $multicloud_src_folder/openstack/ocata/target/multicloud-openstack-ocata-1.0.0-SNAPSHOT.zip
29 asserts_file_exist $multicloud_src_folder/openstack/windriver/target/multicloud-openstack-windriver-1.0.0-SNAPSHOT.zip
Victor Morales000de532017-08-31 17:28:10 -050030}
31
Victor Morales6a919972017-09-28 18:29:54 -070032# test_get_multicloud_images() -
33function test_get_multicloud_images {
34 clone_multicloud_repos
35 get_multicloud_images
36}
37
Victor Morales000de532017-08-31 17:28:10 -050038# test_install_multicloud() - Verify the built and start of Multi Cloud services
39function test_install_multicloud {
40 clone_multicloud_repos
Victor Morales6a919972017-09-28 18:29:54 -070041 get_multicloud_images
Victor Morales000de532017-08-31 17:28:10 -050042 install_multicloud
43}
44
45if [ "$1" != '*' ]; then
46 unset covered_functions
47 covered_functions=$1
48fi
49main "${covered_functions[@]}"