X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=test%2Fcommon%2Fprodstub_api_functions.sh;h=6c3ce23424213750d2fcff131b630591a13a63df;hb=0f6367023720ecc7d7b4b38cbbc4282792172a89;hp=bb4ccf59f38261d0b073a929ce53c591bfb9e2ce;hpb=6f48adb69090799c74c29204dd2cd1737cc9d6ac;p=nonrtric.git diff --git a/test/common/prodstub_api_functions.sh b/test/common/prodstub_api_functions.sh index bb4ccf59..6c3ce234 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