X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=test%2Fcommon%2Fkubeproxy_api_functions.sh;h=120fbb6ac4b8da00ce3a7ea85af95626bf97e523;hb=c185c0fd344f75ca380204af3080a921fc214f91;hp=6448185bce9ec291bc627cc31d7f25cab9875416;hpb=2918bef3d237c99e6cf7e9c1ab1722781128617b;p=nonrtric.git diff --git a/test/common/kubeproxy_api_functions.sh b/test/common/kubeproxy_api_functions.sh index 6448185b..120fbb6a 100644 --- a/test/common/kubeproxy_api_functions.sh +++ b/test/common/kubeproxy_api_functions.sh @@ -378,3 +378,18 @@ start_kube_proxy() { } +# Turn on debug logging in kubeproxy +# args: - +# (Function for test scripts) +set_kubeproxy_debug() { + echo -e $BOLD"Setting kubeproxy debug logging"$EBOLD + curlString="$KUBE_PROXY_WEB_PATH/debug -X PUT" + result=$(__do_curl_no_proxy "$curlString") + if [ $? -ne 0 ]; then + __print_err "could not set debug logging" $@ + ((RES_CONF_FAIL++)) + return 1 + fi + echo "" + return 0 +}