X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=test%2Fcommon%2Fapi_curl.sh;h=c7e5c90814ee91755747abff755f2c12cba8fcda;hb=de4d0f86a327469fb64645c2bcd3aeea7832ad25;hp=cd3e9790abc86036ad2189032fe472f93065fe8e;hpb=5343c3097bd7ae1c1c8d5f0409803c0c60034805;p=nonrtric.git diff --git a/test/common/api_curl.sh b/test/common/api_curl.sh index cd3e9790..c7e5c908 100644 --- a/test/common/api_curl.sh +++ b/test/common/api_curl.sh @@ -23,7 +23,7 @@ # one for sending the requests and one for receiving the response # but only when using the DMAAP interface # REST or DMAAP is controlled of the base url of $ADAPTER -# arg: (PA|ECS GET|PUT|POST|DELETE|GET_BATCH|PUT_BATCH|POST_BATCH|DELETE_BATCH []) | (PA|ECS RESPONSE ) +# arg: (PA|ECS|CR|RC GET|PUT|POST|DELETE|GET_BATCH|PUT_BATCH|POST_BATCH|DELETE_BATCH []) | (PA|ECS RESPONSE ) # (Not for test scripts) __do_curl_to_api() { TIMESTAMP=$(date "+%Y-%m-%d %H:%M:%S") @@ -45,6 +45,11 @@ __do_curl_to_api() { __ADAPTER=$CR_ADAPTER __RESTBASE=$CR_RESTBASE __RESTBASE_SECURE=$CR_RESTBASE_SECURE + __RETRY_CODES="" + elif [ $1 == "RC" ]; then + __ADAPTER=$RC_ADAPTER + __RESTBASE=$RC_RESTBASE + __RESTBASE_SECURE=$RC_RESTBASE_SECURE __RETRY_CODES="" else paramError=1