Code Review
/
nonrtric.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Step version for release
[nonrtric.git]
/
test
/
common
/
controller_api_functions.sh
diff --git
a/test/common/controller_api_functions.sh
b/test/common/controller_api_functions.sh
index
37d1b40
..
c4ba71c
100644
(file)
--- a/
test/common/controller_api_functions.sh
+++ b/
test/common/controller_api_functions.sh
@@
-41,9
+41,9
@@
__do_curl_to_controller() {
body=$(echo "$3" | sed 's/"/\\"/g')
json='{"input":{"near-rt-ric-url":"'$2'","body":"'"$body"'"}}'
fi
body=$(echo "$3" | sed 's/"/\\"/g')
json='{"input":{"near-rt-ric-url":"'$2'","body":"'"$body"'"}}'
fi
- echo "$json" > .s
nd
c.payload.json
+ echo "$json" > .s
dn
c.payload.json
echo " FILE: $json" >> $HTTPLOG
echo " FILE: $json" >> $HTTPLOG
- curlString="curl -skw %{http_code} -X POST $SDNC_HTTPX://$SDNC_USER:$SDNC_PWD@localhost:$SDNC_LOCAL_PORT$SDNC_API_URL$1 -H accept:application/json -H Content-Type:application/json --data-binary @.s
nd
c.payload.json"
+ curlString="curl -skw %{http_code} -X POST $SDNC_HTTPX://$SDNC_USER:$SDNC_PWD@localhost:$SDNC_LOCAL_PORT$SDNC_API_URL$1 -H accept:application/json -H Content-Type:application/json --data-binary @.s
dn
c.payload.json"
echo " CMD: "$curlString >> $HTTPLOG
res=$($curlString)
retcode=$?
echo " CMD: "$curlString >> $HTTPLOG
res=$($curlString)
retcode=$?