X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=test%2Fauto-test%2FstartMR.sh;h=250b433ba5720a0f024acfffe1ce31d219bcc55b;hb=refs%2Fchanges%2F88%2F12388%2F5;hp=27bdb4e52df4588d4560cda3150b34d23083e943;hpb=6fc58fd020514c2afce1fc240828bf23f53d8fb6;p=nonrtric.git diff --git a/test/auto-test/startMR.sh b/test/auto-test/startMR.sh index 27bdb4e5..250b433b 100755 --- a/test/auto-test/startMR.sh +++ b/test/auto-test/startMR.sh @@ -1,7 +1,8 @@ #!/bin/bash # ============LICENSE_START=============================================== -# Copyright (C) 2021 Nordix Foundation. All rights reserved. +# Copyright (C) 2021-2023 Nordix Foundation. All rights reserved. +# Copyright (C) 2023 OpenInfra Foundation Europe. 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. @@ -17,15 +18,14 @@ # ============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 KUBEPROXY" +DOCKER_INCLUDED_IMAGES="MR DMAAPMR KUBEPROXY KAFKAPC" #App names to include in the test when running kubernetes, space separated list -KUBE_INCLUDED_IMAGES="MR DMAAPMR KUBEPROXY" -#Prestarted app (not started by script) to include in the test when running kubernetes, space separated list +KUBE_INCLUDED_IMAGES="MR DMAAPMR KUBEPROXY KAFKAPC" +#Pre-started 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 @@ -34,21 +34,11 @@ KUBE_PRESTARTED_IMAGES="" CONDITIONALLY_IGNORED_IMAGES="" #Supported test environment profiles -SUPPORTED_PROFILES="ONAP-HONOLULU ONAP-ISTANBUL ORAN-D-RELEASE ORAN-E-RELEASE" +SUPPORTED_PROFILES="ORAN-G-RELEASE ORAN-H-RELEASE ORAN-I-RELEASE" #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 +. ../common/testcase_common.sh $@ setup_testenvironment @@ -57,9 +47,20 @@ setup_testenvironment clean_environment start_kube_proxy start_mr "$MR_READ_TOPIC" "/events" "users/policy-agent" \ - "$MR_WRITE_TOPIC" "/events" "users/mr-stub" \ - "unauthenticated.dmaapadp.json" "/events" "dmaapadapterproducer/msgs" \ - "unauthenticated.dmaapmed.json" "/events" "maapmediatorproducer/STD_Fault_Messages" + "$MR_WRITE_TOPIC" "/events" "users/mr-stub" + #\ + #"unauthenticated.dmaapadp.json" "/events" "dmaapadapterproducer/msgs" \ + #"unauthenticated.dmaapmed.json" "/events" "maapmediatorproducer/STD_Fault_Messages" + +start_kafkapc + +kafkapc_api_reset 200 + +kafkapc_api_create_topic 201 "unauthenticated.dmaapadp.json" "application/json" + +kafkapc_api_create_topic 201 "unauthenticated.dmaapmed.json" "application/json" + +dmaap_api_print_topics if [ $RUNMODE == "KUBE" ]; then :