X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=test%2Fcommon%2Fricsimulator_api_functions.sh;h=56f968ee26bf4c46ca91ea93c70bdf6086a814c1;hb=6a39814272307d0207222c9229b0d765ac062bf0;hp=67a398e16adedfc386c33dc363f42c00f653f53b;hpb=045a1503113be9e0ff6e0747c94d23e06ddb263f;p=nonrtric.git diff --git a/test/common/ricsimulator_api_functions.sh b/test/common/ricsimulator_api_functions.sh index 67a398e1..56f968ee 100644 --- a/test/common/ricsimulator_api_functions.sh +++ b/test/common/ricsimulator_api_functions.sh @@ -30,6 +30,7 @@ __execute_curl_to_sim() { echo " RESP: $res" >> $HTTPLOG retcode=$? if [ $retcode -ne 0 ]; then + ((RES_CONF_FAIL++)) echo " RETCODE: "$retcode echo -e $RED" FAIL - fatal error when executing curl."$ERED return 1 @@ -40,6 +41,7 @@ __execute_curl_to_sim() { return 0 fi echo -e $RED" FAIL - expected http response: "$1" but got http response: "$status $ERED + ((RES_CONF_FAIL++)) return 1 } @@ -119,7 +121,7 @@ sim_put_policy_type() { return $? } -# DSimulator API: Delete a policy type in a ric +# Simulator API: Delete a policy type in a ric # # (Function for test scripts) sim_delete_policy_type() {