X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=test%2Fcr%2Fbasic_test.sh;fp=test%2Fcr%2Fbasic_test.sh;h=dbaca4f05cb29e79bfb9cf80e58b1708260ef737;hb=113bf0910498992f20a6cb70f2bc70d4d5b204ca;hp=8be110af6653f021aab8444cdcc0526e78e506ca;hpb=cf0328e36341adab7db60355fb37b8629b1cd8bd;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