Victor Morales | 000de53 | 2017-08-31 17:28:10 -0500 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | source /var/onap_tests/_test_base |
| 4 | source /var/onap/multicloud |
| 5 | |
| 6 | covered_functions=( |
Victor Morales | 6a91997 | 2017-09-28 18:29:54 -0700 | [diff] [blame] | 7 | "clone_multicloud_repos" "compile_multicloud_repos" "get_multicloud_images" "install_multicloud" |
Victor Morales | 000de53 | 2017-08-31 17:28:10 -0500 | [diff] [blame] | 8 | ) |
| 9 | |
| 10 | # test_clone_multicloud_repos() - Verify that Multi Cloud repositories are cloned properly |
| 11 | function test_clone_multicloud_repos { |
| 12 | clone_multicloud_repos |
| 13 | |
Shashank Kumar Shankar | f84c9a1 | 2017-10-23 11:08:31 -0700 | [diff] [blame^] | 14 | #asserts_file_exist $multicloud_src_folder/ |
| 15 | asserts_file_exist $multicloud_src_folder/framework/pom.xml |
Victor Morales | 000de53 | 2017-08-31 17:28:10 -0500 | [diff] [blame] | 16 | asserts_file_exist $multicloud_src_folder/openstack/pom.xml |
| 17 | asserts_file_exist $multicloud_src_folder/openstack/vmware/pom.xml |
Shashank Kumar Shankar | f84c9a1 | 2017-10-23 11:08:31 -0700 | [diff] [blame^] | 18 | asserts_file_exist $multicloud_src_folder/openstack/windriver/pom.xml |
| 19 | #asserts_file_exist $multicloud_src_folder/azure/ |
Victor Morales | 000de53 | 2017-08-31 17:28:10 -0500 | [diff] [blame] | 20 | } |
| 21 | |
| 22 | # test_compile_multicloud_repos() - |
| 23 | function 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 Shankar | f84c9a1 | 2017-10-23 11:08:31 -0700 | [diff] [blame^] | 28 | 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 Morales | 000de53 | 2017-08-31 17:28:10 -0500 | [diff] [blame] | 30 | } |
| 31 | |
Victor Morales | 6a91997 | 2017-09-28 18:29:54 -0700 | [diff] [blame] | 32 | # test_get_multicloud_images() - |
| 33 | function test_get_multicloud_images { |
| 34 | clone_multicloud_repos |
| 35 | get_multicloud_images |
| 36 | } |
| 37 | |
Victor Morales | 000de53 | 2017-08-31 17:28:10 -0500 | [diff] [blame] | 38 | # test_install_multicloud() - Verify the built and start of Multi Cloud services |
| 39 | function test_install_multicloud { |
| 40 | clone_multicloud_repos |
Victor Morales | 6a91997 | 2017-09-28 18:29:54 -0700 | [diff] [blame] | 41 | get_multicloud_images |
Victor Morales | 000de53 | 2017-08-31 17:28:10 -0500 | [diff] [blame] | 42 | install_multicloud |
| 43 | } |
| 44 | |
| 45 | if [ "$1" != '*' ]; then |
| 46 | unset covered_functions |
| 47 | covered_functions=$1 |
| 48 | fi |
| 49 | main "${covered_functions[@]}" |