Run test env towards selected kube cluster
[nonrtric.git] / test / common / cp_api_functions.sh
index 992fd68..f9f689a 100644 (file)
@@ -79,7 +79,7 @@ __CP_kube_delete_all() {
 # args: <log-dir> <file-prexix>
 __CP_store_docker_logs() {
        if [ $RUNMODE == "KUBE" ]; then
-               kubectl  logs -l "autotest=CP" -n $KUBE_NONRTRIC_NAMESPACE --tail=-1 > $1$2_control-panel.log 2>&1
+               kubectl $KUBECONF  logs -l "autotest=CP" -n $KUBE_NONRTRIC_NAMESPACE --tail=-1 > $1$2_control-panel.log 2>&1
        else
                docker logs $CONTROL_PANEL_APP_NAME > $1$2_control-panel.log 2>&1
        fi
@@ -104,6 +104,12 @@ __CP_statisics_setup() {
        fi
 }
 
+# Check application requirements, e.g. helm, the the test needs. Exit 1 if req not satisfied
+# args: -
+__CP_test_requirements() {
+       :
+}
+
 #######################################################