Victor Morales | dd07480 | 2017-07-26 16:06:35 -0500 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | source /var/onap_tests/_test_base |
| 4 | source /var/onap/mr |
| 5 | |
| 6 | covered_functions=( |
Victor Morales | f0e6239 | 2017-08-17 14:07:51 -0500 | [diff] [blame] | 7 | "clone_mr_repos" "get_mr_images" "install_message_router" |
Victor Morales | dd07480 | 2017-07-26 16:06:35 -0500 | [diff] [blame] | 8 | ) |
| 9 | |
Victor Morales | f0e6239 | 2017-08-17 14:07:51 -0500 | [diff] [blame] | 10 | # test_clone_mr_repos() - Verify that Message Router repositories are cloned properly |
| 11 | function test_clone_mr_repos { |
| 12 | clone_mr_repos |
Victor Morales | dd07480 | 2017-07-26 16:06:35 -0500 | [diff] [blame] | 13 | |
Victor Morales | e173c76 | 2017-08-30 15:24:20 -0500 | [diff] [blame^] | 14 | asserts_file_exist $mr_src_folder/deploy.sh |
Victor Morales | f0e6239 | 2017-08-17 14:07:51 -0500 | [diff] [blame] | 15 | } |
| 16 | |
| 17 | # test_get_mr_images() - Verify that Message Router Docker images are retrieved |
| 18 | function test_get_mr_images { |
| 19 | get_mr_images |
| 20 | |
Victor Morales | dd07480 | 2017-07-26 16:06:35 -0500 | [diff] [blame] | 21 | asserts_image attos/dmaap |
| 22 | asserts_image wurstmeister/zookeeper |
| 23 | } |
| 24 | |
Victor Morales | f0e6239 | 2017-08-17 14:07:51 -0500 | [diff] [blame] | 25 | # test_install_message_router() - Verify the built and start of Message Router services |
| 26 | function test_install_message_router { |
| 27 | clone_mr_repos |
| 28 | get_mr_images |
| 29 | install_message_router |
| 30 | |
| 31 | asserts_image_running dockerfiles_kafka |
| 32 | } |
| 33 | |
Victor Morales | dd07480 | 2017-07-26 16:06:35 -0500 | [diff] [blame] | 34 | if [ "$1" != '*' ]; then |
| 35 | unset covered_functions |
| 36 | covered_functions=$1 |
| 37 | fi |
| 38 | main "${covered_functions[@]}" |