X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=test%2Fauto-test%2FstartMR.sh;h=823a72ec106a4e1d14b620b401aface09c976da3;hb=f83c362e67d25a464b80faf6d8363ccacacc5ebb;hp=bb4e5fa5f9ad5ca2513c3bf658f321affce315da;hpb=c4d4c18bdac10d5ae35f24d8bcd9db2271124c0b;p=nonrtric.git diff --git a/test/auto-test/startMR.sh b/test/auto-test/startMR.sh index bb4e5fa5..823a72ec 100755 --- a/test/auto-test/startMR.sh +++ b/test/auto-test/startMR.sh @@ -17,48 +17,55 @@ # ============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" +DOCKER_INCLUDED_IMAGES="MR DMAAPMR KUBEPROXY KAFKAPC" #App names to include in the test when running kubernetes, space separated list -KUBE_INCLUDED_IMAGES="CP CR MR PA RICSIM SDNC KUBEPROXY NGW" +KUBE_INCLUDED_IMAGES="MR DMAAPMR KUBEPROXY KAFKAPC" #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" +CONDITIONALLY_IGNORED_IMAGES="" #Supported test environment profiles -SUPPORTED_PROFILES="ONAP-GUILIN ONAP-HONOLULU ORAN-CHERRY ORAN-DAWN" +SUPPORTED_PROFILES="ORAN-F-RELEASE ORAN-G-RELEASE ORAN-H-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 #### TEST BEGIN #### clean_environment -start_mr -docker kill mr-stub +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" + +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 + : +else + docker kill $MR_STUB_APP_NAME +fi -print_result