aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_mr
blob: e433934b637c92c9e867a7b50f9ca8021b2dce7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/bash
# SPDX-license-identifier: Apache-2.0
##############################################################################
# Copyright (c) 2017-2018
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
#############################################################################

source /var/onap_tests/_test_base
source /var/onap/mr

covered_functions=(
"clone_mr_repos" "get_mr_images" "install_message_router"
)

# test_clone_mr_repos() - Verify that Message Router repositories are cloned properly
function test_clone_mr_repos {
    clone_repo dcae/demo/startup/message-router ${src_folders[mr]}

    asserts_file_exist ${src_folders[mr]}/deploy.sh
}

# test_get_mr_images() - Verify that Message Router Docker images are retrieved
function test_get_mr_images {
    get_mr_images

    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_repo dcae/demo/startup/message-router ${src_folders[mr]}
    get_mr_images
    install_message_router

    asserts_image_running dockerfiles_kafka
}

if [ "$1" != '*' ]; then
    unset covered_functions
    covered_functions=$1
fi
main "${covered_functions[@]}"
Scalar-Plain">name: 'Seshu Kumar' email: 'seshu.kumar.m@huawei.com' id: 'seshukm' company: 'Huawei' timezone: 'India/Bangalore' primary_contact: *onap_releng_ptl issue_tracking: type: 'jira' url: 'https://jira.onap.org/projects/SO' key: 'SO' mailing_list: type: 'groups.io' url: 'lists.onap.org' tag: '<[sub-project_name]>' realtime_discussion: '' meetings: - type: 'zoom' agenda: 'https://wiki.onap.org/display/DW/Minutes+Of+Meeting' url: 'https://wiki.onap.org/display/DW/Service+Orchestrator+Project' server: 'n/a' channel: 'n/a' repeats: 'weekly' time: '14:00 UTC' repositories: - so - so-chef-repo - so-docker-config - so-libs - so-so-config committers: - <<: *onap_releng_ptl - name: 'Chuanyu Chen' email: 'chenchuanyu@huawei.com' company: 'Huawei' id: 'boychuanyu' timezone: 'Asia/Shanghai' - name: 'Byung-Woo Jun' email: 'byung-woo.jun@ericsson.com' company: 'Ericsson' id: 'byungwoojun' timezone: 'America/New_York' - name: 'DeWayne Filppi' email: 'dewayne@cloudify.co' company: 'Cloudify' id: 'dfilppi' timezone: 'America/Los_Angeles' - name: 'Max Benjamin' email: 'max.benjamin@att.com' company: 'ATT' id: 'mfour' timezone: 'America/New_York' - name: 'Yan Yang' email: 'yangyanyj@chinamobile.com' company: 'China Mobile' id: 'yangyan' timezone: 'Asia/Shanghai' - name: 'Marcus Williams' email: 'marcus.williams@intel.com' company: 'Intel' id: 'mgkwill' timezone: 'America/Los_Angeles' - name: 'Sanchita Pathak' email: 'sanchita@techmahindra.com' company: 'Tech Mahindra' id: 'sanchitap' timezone: 'Asia/Kolkata' - name: 'Steve Smokowski' email: 'ss835w@att.com' company: 'ATT' id: 'stevesmokowski' timezone: 'America/New_York' - name: 'Subhash Kumar Singh' email: 'Subhash.Kumar.Singh@huawei.com' company: 'Huawei' id: 'subhash_singh' timezone: 'Asia/Kolkata' - name: 'Lukasz Muszkieta' email: 'lukasz.muszkieta@nokia.com' company: 'Nokia' id: 'lukaszM' timezone: 'Europe/Warsaw' tsc: approval: 'https://lists.onap.org/pipermail/onap-tsc' changes: - type: 'removal' name: 'Tal Liron' name: 'Heliu Zhong' name: 'Yuanwei Yang' name: 'Christophe Closset' name: 'Claude Noshpitz' name: 'maopeng zhang' name: 'Bin Hou' name: 'Fu Jinhua' name: 'Jie Feng' name: 'jackie tian' name: 'Deng Hui' link: 'https://lists.onap.org/pipermail/onap-tsc/2018-May/004802.html' - type: 'addition' name: 'Marcus Williams' name: 'Sanchita Pathak' link: 'https://lists.onap.org/pipermail/onap-tsc/2018-May/004802.html' - type: 'addition' name: 'Steve Smokowski' name: 'Subhash Kumar Singh' name: 'Lukasz Muszkieta' link: 'https://lists.onap.org/g/onap-tsc/message/4320' - type: 'removal' name: 'Rob Daugherty' - type: 'addition' name: 'Max Benjamin' link: 'https://lists.onap.org/g/onap-tsc/message/4981?p=,,,20,0,0,0::Created,,committer,20,2,0,31638681'