Added tests and improvements
[nonrtric.git] / test / common / rapp_catalogue_api_functions.sh
index 52416d3..537bc0c 100644 (file)
@@ -84,6 +84,18 @@ __RC_initial_setup() {
        use_rapp_catalogue_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: -
+__RC_statisics_setup() {
+       if [ $RUNMODE == "KUBE" ]; then
+               echo "RC $RAPP_CAT_APP_NAME $KUBE_NONRTRIC_NAMESPACE"
+       else
+               echo "RC $RAPP_CAT_APP_NAME"
+       fi
+}
+
 #######################################################
 
 # Set http as the protocol to use for all communication to the Rapp catalogue