X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=test%2Fauto-test%2FPM_DEMO.sh;h=ac19879ec365c001265581fff245a0487fe471f2;hb=refs%2Fchanges%2F23%2F9023%2F2;hp=d80dd6dcf2684553ab19cfc13d04a6c7a43ce88f;hpb=d2aeca8843fe3ffca2e73dec5b64daeef0dda938;p=nonrtric.git diff --git a/test/auto-test/PM_DEMO.sh b/test/auto-test/PM_DEMO.sh index d80dd6dc..ac19879e 100755 --- a/test/auto-test/PM_DEMO.sh +++ b/test/auto-test/PM_DEMO.sh @@ -33,7 +33,7 @@ KUBE_PRESTARTED_IMAGES="" CONDITIONALLY_IGNORED_IMAGES="CBS CONSUL NGW" #Supported test environment profiles -SUPPORTED_PROFILES="ONAP-GUILIN ONAP-HONOLULU ONAP-ISTANBUL ONAP-JAKARTA ORAN-CHERRY ORAN-D-RELEASE ORAN-E-RELEASE ORAN-F-RELEASE" +SUPPORTED_PROFILES="ONAP-GUILIN ONAP-HONOLULU ONAP-ISTANBUL ONAP-JAKARTA ONAP-KOHN ORAN-CHERRY ORAN-D-RELEASE ORAN-E-RELEASE ORAN-F-RELEASE ORAN-G-RELEASE" #Supported run modes SUPPORTED_RUNMODES="DOCKER KUBE" @@ -86,7 +86,16 @@ start_a1pms NORPOXY $SIM_GROUP/$A1PMS_COMPOSE_DIR/$A1PMS_CONFIG_FILE set_a1pms_trace -prepare_consul_config SDNC ".consul_config.json" +__CONFIG_HEADER="NOHEADER" +if [ $RUNMODE == "KUBE" ]; then + __CONFIG_HEADER="HEADER" +else + if [[ "$A1PMS_FEATURE_LEVEL" == *"NOCONSUL"* ]]; then + __CONFIG_HEADER="HEADER" + fi + fi + +prepare_consul_config SDNC ".consul_config.json" $__CONFIG_HEADER if [ $RUNMODE == "KUBE" ]; then a1pms_load_config ".consul_config.json" @@ -99,6 +108,8 @@ else fi fi +sleep_wait 120 "Let A1PMS cofiguration take effect" + a1pms_api_get_status 200 # Print the A1 version for OSC