blob: a863b99ba37245219499520d35c5fcefaa1b1bf0 [file] [log] [blame]
Victor Moralesdd074802017-07-26 16:06:35 -05001#!/bin/bash
2
3source /var/onap_tests/_test_base
4source /var/onap/mr
5
6covered_functions=(
Victor Moralesf0e62392017-08-17 14:07:51 -05007"clone_mr_repos" "get_mr_images" "install_message_router"
Victor Moralesdd074802017-07-26 16:06:35 -05008)
9
Victor Moralesf0e62392017-08-17 14:07:51 -050010# test_clone_mr_repos() - Verify that Message Router repositories are cloned properly
11function test_clone_mr_repos {
12 clone_mr_repos
Victor Moralesdd074802017-07-26 16:06:35 -050013
Victor Moralese173c762017-08-30 15:24:20 -050014 asserts_file_exist $mr_src_folder/deploy.sh
Victor Moralesf0e62392017-08-17 14:07:51 -050015}
16
17# test_get_mr_images() - Verify that Message Router Docker images are retrieved
18function test_get_mr_images {
19 get_mr_images
20
Victor Moralesdd074802017-07-26 16:06:35 -050021 asserts_image attos/dmaap
22 asserts_image wurstmeister/zookeeper
23}
24
Victor Moralesf0e62392017-08-17 14:07:51 -050025# test_install_message_router() - Verify the built and start of Message Router services
26function 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 Moralesdd074802017-07-26 16:06:35 -050034if [ "$1" != '*' ]; then
35 unset covered_functions
36 covered_functions=$1
37fi
38main "${covered_functions[@]}"