blob: ad1bcd2f5009ff9253193ddaa2e53b622bcf3591 [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 {
Victor Morales54646642017-12-08 11:57:42 -080012 clone_repo dcae/demo/startup/message-router ${src_folders[mr]}
Victor Moralesdd074802017-07-26 16:06:35 -050013
Victor Morales54646642017-12-08 11:57:42 -080014 asserts_file_exist ${src_folders[mr]}/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 {
Victor Morales54646642017-12-08 11:57:42 -080027 clone_repo dcae/demo/startup/message-router ${src_folders[mr]}
Victor Moralesf0e62392017-08-17 14:07:51 -050028 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[@]}"