X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=test%2Fauto-test%2FFTC300.sh;h=13647c9f7db39f2a56216d4f6c504153ffe91060;hb=575869c5ed7533f22b0c7db05fdbbbb8e00e09fc;hp=d9bca7df295764717e5909f6e498d5e1673ac758;hpb=71646b0f503b6c0a541f49423993ba93a9f5d8ca;p=nonrtric.git diff --git a/test/auto-test/FTC300.sh b/test/auto-test/FTC300.sh index d9bca7df..13647c9f 100755 --- a/test/auto-test/FTC300.sh +++ b/test/auto-test/FTC300.sh @@ -30,11 +30,6 @@ EXCLUDED_IMAGES="SDNC_ONAP" generate_uuid -#Local vars in test script -########################## -# Path to callback receiver -CR_PATH="http://$CR_APP_NAME:$CR_EXTERNAL_PORT/callbacks" - # Tested variants of REST/DMAAP/SDNC config TESTED_VARIANTS="REST DMAAP REST+SDNC DMAAP+SDNC DMAAP_BATCH DMAAP_BATCH+SDNC" #Test agent and simulator protocol versions (others are http only) @@ -48,6 +43,18 @@ for __httpx in $TESTED_PROTOCOLS ; do echo "#####################################################################" echo "#####################################################################" + #Local vars in test script + ########################## + + if [ $__httpx == "HTTPS" ]; then + # Path to callback receiver + CR_PATH="https://$CR_APP_NAME:$CR_EXTERNAL_SECURE_PORT/callbacks" + use_cr_https + else + # Path to callback receiver + CR_PATH="http://$CR_APP_NAME:$CR_EXTERNAL_PORT/callbacks" + use_cr_http + fi # Clean container and start all needed containers # clean_containers @@ -76,6 +83,13 @@ for __httpx in $TESTED_PROTOCOLS ; do if [[ $interface = *"SDNC"* ]]; then start_sdnc + if [ $__httpx == "HTTPS" ]; then + # "Using secure ports towards SDNC" + use_sdnc_https + else + #"Using non-secure ports towards SDNC" + use_sdnc_http + fi prepare_consul_config SDNC ".consul_config.json" else prepare_consul_config NOSDNC ".consul_config.json" @@ -90,7 +104,13 @@ for __httpx in $TESTED_PROTOCOLS ; do set_agent_debug if [[ $interface == *"DMAAP"* ]]; then - use_agent_dmaap + if [ $__httpx == "HTTPS" ]; then + echo "Using secure ports towards dmaap" + use_agent_dmaap_https + else + echo "Using non-secure ports towards dmaap" + use_agent_dmaap_http + fi else if [ $__httpx == "HTTPS" ]; then echo "Using secure ports towards the agent"