summaryrefslogtreecommitdiffstats
path: root/bootstrap/vagrant-onap/tests/test_mr
diff options
context:
space:
mode:
authorVictor Morales <victor.morales@intel.com>2017-08-17 14:07:51 -0500
committerVictor Morales <victor.morales@intel.com>2017-08-17 14:07:51 -0500
commitf0e62392a1016b93007326880e945ee694ea8505 (patch)
tree8e58067bdc3a241a31a13dbb720a67875174722d /bootstrap/vagrant-onap/tests/test_mr
parent68527bc1a68264f6be0953a91e4cb7c3aac41347 (diff)
Refactor and complete MR UTs
The Message Router Unit tests were incomplete, this change add news for covering all its functions. Change-Id: I02738798e358527ed2b710a192d0a796814b5d69 Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-Id: INT-104
Diffstat (limited to 'bootstrap/vagrant-onap/tests/test_mr')
-rw-r--r--bootstrap/vagrant-onap/tests/test_mr26
1 files changed, 20 insertions, 6 deletions
diff --git a/bootstrap/vagrant-onap/tests/test_mr b/bootstrap/vagrant-onap/tests/test_mr
index 6fad08311..d8db84940 100644
--- a/bootstrap/vagrant-onap/tests/test_mr
+++ b/bootstrap/vagrant-onap/tests/test_mr
@@ -4,19 +4,33 @@ source /var/onap_tests/_test_base
source /var/onap/mr
covered_functions=(
-"init_mr"
+"clone_mr_repos" "get_mr_images" "install_message_router"
)
-# test_init_mr() - Verify the built and start of Message Router services
-function test_init_mr {
- init_mr
+# test_clone_mr_repos() - Verify that Message Router repositories are cloned properly
+function test_clone_mr_repos {
+ clone_mr_repos
+
+ asserts_file_exist $src_folder/deploy.sh
+}
+
+# test_get_mr_images() - Verify that Message Router Docker images are retrieved
+function test_get_mr_images {
+ get_mr_images
- asserts_image dockerfiles_kafka
- asserts_image anapsix/alpine-java
asserts_image attos/dmaap
asserts_image wurstmeister/zookeeper
}
+# test_install_message_router() - Verify the built and start of Message Router services
+function test_install_message_router {
+ clone_mr_repos
+ get_mr_images
+ install_message_router
+
+ asserts_image_running dockerfiles_kafka
+}
+
if [ "$1" != '*' ]; then
unset covered_functions
covered_functions=$1