X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=test%2Fcommon%2Fdmaapadp_api_functions.sh;h=a9605eccc6319d237fbdaea61de16cfbd2f37fb3;hb=c453edfb85fd5efe64f7b1a6cc4892f5d66cbc0c;hp=26da2d08aa0568c083083d808c5de4079c12c6cc;hpb=6f48adb69090799c74c29204dd2cd1737cc9d6ac;p=nonrtric.git diff --git a/test/common/dmaapadp_api_functions.sh b/test/common/dmaapadp_api_functions.sh index 26da2d08..a9605ecc 100644 --- a/test/common/dmaapadp_api_functions.sh +++ b/test/common/dmaapadp_api_functions.sh @@ -92,6 +92,18 @@ __DMAAPADP_initial_setup() { use_dmaapadp_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: - +__DMAAPADP_statisics_setup() { + if [ $RUNMODE == "KUBE" ]; then + echo "DMAAPADP $DMAAP_ADP_APP_NAME $KUBE_NONRTRIC_NAMESPACE" + else + echo "DMAAPADP $DMAAP_ADP_APP_NAME" + fi +} + ####################################################### # Set http as the protocol to use for all communication to the Dmaap adapter @@ -112,7 +124,7 @@ use_dmaapadp_https() { # args: __dmaapadp_set_protocoll() { echo -e $BOLD"$DMAAP_ADP_DISPLAY_NAME protocol setting"$EBOLD - echo -e " Using $BOLD http $EBOLD towards $DMAAP_ADP_DISPLAY_NAME" + echo -e " Using $BOLD $1 $EBOLD towards $DMAAP_ADP_DISPLAY_NAME" ## Access to Dmaap adapter @@ -173,7 +185,7 @@ __dmaapadp_export_vars() { # paths to other components - export ECS_SERVICE_PATH + export ICS_SERVICE_PATH export DMAAP_ADP_SERVICE_PATH export MR_SERVICE_PATH