X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=test%2Fcr%2Fbasic_test.sh;h=dbaca4f05cb29e79bfb9cf80e58b1708260ef737;hb=dddded37b9b321d041a1dc66a3a86112e37b918e;hp=8be110af6653f021aab8444cdcc0526e78e506ca;hpb=acdd3f361ff7af58b0276789cc5148180a06e552;p=nonrtric.git diff --git a/test/cr/basic_test.sh b/test/cr/basic_test.sh index 8be110af..dbaca4f0 100755 --- a/test/cr/basic_test.sh +++ b/test/cr/basic_test.sh @@ -20,7 +20,27 @@ # Automated test script for callback receiver container # callbackreciver port -export PORT=8090 +# export PORT=8090 +if [ $# -ne 1 ]; then + echo "Usage: ./basic_test.sh nonsecure|secure" + exit 1 +fi +if [ "$1" != "nonsecure" ] && [ "$1" != "secure" ]; then + echo "Usage: ./basic_test.sh nonsecure|secure" + exit 1 +fi + +if [ $1 == "nonsecure" ]; then + #Default http port for the simulator + PORT=8090 + # Set http protocol + HTTPX="http" +else + #Default https port for the simulator + PORT=8091 + # Set https protocol + HTTPX="https" +fi # source function to do curl and check result . ../common/do_curl_function.sh