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 | |
| 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() - |
| 20 | function 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 |
Victor Morales | 000de53 | 2017-08-31 17:28:10 -0500 | [diff] [blame] | 25 | } |
| 26 | |
Victor Morales | 6a91997 | 2017-09-28 18:29:54 -0700 | [diff] [blame] | 27 | # test_get_multicloud_images() - |
| 28 | function test_get_multicloud_images { |
| 29 | clone_multicloud_repos |
| 30 | get_multicloud_images |
| 31 | } |
| 32 | |
Victor Morales | 000de53 | 2017-08-31 17:28:10 -0500 | [diff] [blame] | 33 | # test_install_multicloud() - Verify the built and start of Multi Cloud services |
| 34 | function test_install_multicloud { |
| 35 | clone_multicloud_repos |
Victor Morales | 6a91997 | 2017-09-28 18:29:54 -0700 | [diff] [blame] | 36 | get_multicloud_images |
Victor Morales | 000de53 | 2017-08-31 17:28:10 -0500 | [diff] [blame] | 37 | install_multicloud |
| 38 | } |
| 39 | |
| 40 | if [ "$1" != '*' ]; then |
| 41 | unset covered_functions |
| 42 | covered_functions=$1 |
| 43 | fi |
| 44 | main "${covered_functions[@]}" |