X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=test%2Fcommon%2Fcontrol_panel_api_functions.sh;h=295e16ab6180e06b181a0adfa22e52b506494e85;hb=afe34e22e0be919b8e054826c23c551b4e493f79;hp=eda6fe3aec631b3a88999ebca26f351da6f84aec;hpb=6f48adb69090799c74c29204dd2cd1737cc9d6ac;p=nonrtric.git diff --git a/test/common/control_panel_api_functions.sh b/test/common/control_panel_api_functions.sh index eda6fe3a..295e16ab 100644 --- a/test/common/control_panel_api_functions.sh +++ b/test/common/control_panel_api_functions.sh @@ -91,6 +91,19 @@ __CP_store_docker_logs() { __CP_initial_setup() { use_control_panel_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: - +__CP_statisics_setup() { + if [ $RUNMODE == "KUBE" ]; then + echo "CP $CONTROL_PANEL_APP_NAME $KUBE_NONRTRIC_NAMESPACE" + else + echo "CP $CONTROL_PANEL_APP_NAME" + fi +} + #######################################################