elinuxhenrik | 6e571d5 | 2021-05-04 13:33:58 +0200 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | # ============LICENSE_START=============================================== |
| 4 | # Copyright (C) 2021 Nordix Foundation. All rights reserved. |
| 5 | # ======================================================================== |
| 6 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | # you may not use this file except in compliance with the License. |
| 8 | # You may obtain a copy of the License at |
| 9 | # |
| 10 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | # |
| 12 | # Unless required by applicable law or agreed to in writing, software |
| 13 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | # See the License for the specific language governing permissions and |
| 16 | # limitations under the License. |
| 17 | # ============LICENSE_END================================================= |
| 18 | # |
| 19 | |
| 20 | |
| 21 | TC_ONELINE_DESCR="Starts DMAAP MR" |
| 22 | |
| 23 | #App names to include in the test when running docker, space separated list |
| 24 | DOCKER_INCLUDED_IMAGES="MR DMAAPMR" |
| 25 | |
| 26 | #App names to include in the test when running kubernetes, space separated list |
| 27 | KUBE_INCLUDED_IMAGES="CP CR MR PA RICSIM SDNC KUBEPROXY NGW" |
| 28 | #Prestarted app (not started by script) to include in the test when running kubernetes, space separated list |
| 29 | KUBE_PRESTARTED_IMAGES="" |
| 30 | |
| 31 | #Ignore image in DOCKER_INCLUDED_IMAGES, KUBE_INCLUDED_IMAGES if |
| 32 | #the image is not configured in the supplied env_file |
| 33 | #Used for images not applicable to all supported profile |
| 34 | CONDITIONALLY_IGNORED_IMAGES="NGW" |
| 35 | |
| 36 | #Supported test environment profiles |
| 37 | SUPPORTED_PROFILES="ONAP-GUILIN ONAP-HONOLULU ORAN-CHERRY ORAN-DAWN" |
| 38 | #Supported run modes |
| 39 | SUPPORTED_RUNMODES="DOCKER KUBE" |
| 40 | |
| 41 | . ../common/testcase_common.sh $@ |
| 42 | . ../common/agent_api_functions.sh |
| 43 | . ../common/consul_cbs_functions.sh |
| 44 | . ../common/control_panel_api_functions.sh |
| 45 | . ../common/controller_api_functions.sh |
| 46 | . ../common/cr_api_functions.sh |
| 47 | . ../common/mr_api_functions.sh |
| 48 | . ../common/ricsimulator_api_functions.sh |
| 49 | . ../common/http_proxy_api_functions.sh |
| 50 | . ../common/kube_proxy_api_functions.sh |
| 51 | . ../common/gateway_api_functions.sh |
| 52 | |
| 53 | setup_testenvironment |
| 54 | |
| 55 | #### TEST BEGIN #### |
| 56 | |
| 57 | clean_environment |
| 58 | start_mr |
| 59 | docker kill mr-stub |
| 60 | |
| 61 | |
| 62 | print_result |
| 63 | |
| 64 | |