X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=test%2Fcommon%2Fprodstub_api_functions.sh;h=17f987ab361286e13171c37efd3bd9a70e7e9661;hb=79e37003f5c94bfe12d197727dd31334e50397a6;hp=bb4ccf59f38261d0b073a929ce53c591bfb9e2ce;hpb=23ef6be86d3ed4f04dbba48ab41af1a1c40debf3;p=nonrtric.git diff --git a/test/common/prodstub_api_functions.sh b/test/common/prodstub_api_functions.sh index bb4ccf59..17f987ab 100644 --- a/test/common/prodstub_api_functions.sh +++ b/test/common/prodstub_api_functions.sh @@ -107,6 +107,18 @@ __PRODSTUB_initial_setup() { use_prod_stub_http } +# Set app short-name, app name and namespace for logging runtime statistics of kubernets pods or docker containers +# For docker, the namespace shall be excluded +# This function is called for apps managed by the test script as well as for prestarted apps. +# args: - +__PRODSTUB_statisics_setup() { + if [ $RUNMODE == "KUBE" ]; then + echo "PRODSTUB $PROD_STUB_APP_NAME $KUBE_SIM_NAMESPACE" + else + echo "PRODSTUB $PROD_STUB_APP_NAME" + fi +} + ####################################################### # Set http as the protocol to use for all communication to the Prod stub sim @@ -149,7 +161,6 @@ __prod_stub_set_protocoll() { # args: __prodstub_export_vars() { export PROD_STUB_APP_NAME - export PROD_STUB_APP_NAME_ALIAS export PROD_STUB_DISPLAY_NAME export DOCKER_SIM_NWNAME