X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=test%2Fcommon%2Fkubeproxy_api_functions.sh;h=c66e63c81a8923d35f7a9f1181749b8d4f69c8d0;hb=93a604b82da289316908c9bfff8380877aaf89e5;hp=6448185bce9ec291bc627cc31d7f25cab9875416;hpb=d2aeca8843fe3ffca2e73dec5b64daeef0dda938;p=nonrtric.git diff --git a/test/common/kubeproxy_api_functions.sh b/test/common/kubeproxy_api_functions.sh index 6448185b..c66e63c8 100644 --- a/test/common/kubeproxy_api_functions.sh +++ b/test/common/kubeproxy_api_functions.sh @@ -378,3 +378,19 @@ 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 +} +