X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=test%2Fauto-test%2FFTC300.sh;h=13647c9f7db39f2a56216d4f6c504153ffe91060;hb=caf750c05d1fdac7165b2368f5cc6882517c6390;hp=2ab4385b446bd317e69dbac754aa0bd4bbfd62ba;hpb=e704d116cf5d97ca5faad93c536901f3351df93f;p=nonrtric.git diff --git a/test/auto-test/FTC300.sh b/test/auto-test/FTC300.sh index 2ab4385b..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,14 +43,30 @@ 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 if [ $__httpx == "HTTPS" ]; then + #echo "Using secure ports between agent and MR" + use_mr_https echo "Using secure ports towards simulators" use_simulator_https else + #"Using non-secure ports between agent and MR" + use_mr_http echo "Using non-secure ports towards simulators" use_simulator_http fi @@ -72,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" @@ -86,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"