| #!/bin/bash |
| |
| # ============LICENSE_START=============================================== |
| # Copyright (C) 2021 Nordix Foundation. All rights reserved. |
| # ======================================================================== |
| # Licensed under the Apache License, Version 2.0 (the "License"); |
| # you may not use this file except in compliance with the License. |
| # You may obtain a copy of the License at |
| # |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, software |
| # distributed under the License is distributed on an "AS IS" BASIS, |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| # See the License for the specific language governing permissions and |
| # limitations under the License. |
| # ============LICENSE_END================================================= |
| # |
| |
| |
| TC_ONELINE_DESCR="Starts DMAAP MR" |
| |
| #App names to include in the test when running docker, space separated list |
| DOCKER_INCLUDED_IMAGES="MR DMAAPMR" |
| |
| #App names to include in the test when running kubernetes, space separated list |
| KUBE_INCLUDED_IMAGES="CP CR MR PA RICSIM SDNC KUBEPROXY NGW" |
| #Prestarted app (not started by script) to include in the test when running kubernetes, space separated list |
| KUBE_PRESTARTED_IMAGES="" |
| |
| #Ignore image in DOCKER_INCLUDED_IMAGES, KUBE_INCLUDED_IMAGES if |
| #the image is not configured in the supplied env_file |
| #Used for images not applicable to all supported profile |
| CONDITIONALLY_IGNORED_IMAGES="NGW" |
| |
| #Supported test environment profiles |
| SUPPORTED_PROFILES="ONAP-GUILIN ONAP-HONOLULU ORAN-CHERRY ORAN-DAWN" |
| #Supported run modes |
| SUPPORTED_RUNMODES="DOCKER KUBE" |
| |
| . ../common/testcase_common.sh $@ |
| . ../common/agent_api_functions.sh |
| . ../common/consul_cbs_functions.sh |
| . ../common/control_panel_api_functions.sh |
| . ../common/controller_api_functions.sh |
| . ../common/cr_api_functions.sh |
| . ../common/mr_api_functions.sh |
| . ../common/ricsimulator_api_functions.sh |
| . ../common/http_proxy_api_functions.sh |
| . ../common/kube_proxy_api_functions.sh |
| . ../common/gateway_api_functions.sh |
| |
| setup_testenvironment |
| |
| #### TEST BEGIN #### |
| |
| clean_environment |
| start_mr |
| docker kill mr-stub |
| |
| |
| print_result |
| |
| |