Merge "Adapted test scripts to changes in PMS 2.0"
[nonrtric.git] / test / auto-test / FTC10.sh
index 52a2bb3..ee57b62 100755 (executable)
@@ -22,6 +22,9 @@ TC_ONELINE_DESCR="Basic use case, register service, create/update policy, delete
 #App names to include in the test, space separated list
 INCLUDED_IMAGES="CBS CONSUL CP CR MR PA RICSIM"
 
+#SUPPORTED TEST ENV FILE
+SUPPORTED_PROFILES="ONAP-MASTER ONAP-GUILIN ORAN-MASTER"
+
 . ../common/testcase_common.sh $@
 . ../common/agent_api_functions.sh
 . ../common/ricsimulator_api_functions.sh
@@ -30,12 +33,6 @@ INCLUDED_IMAGES="CBS CONSUL CP CR MR PA RICSIM"
 
 generate_uuid
 
-#Local vars in test script
-##########################
-# Path to callback receiver
-CR_PATH="http://$CR_APP_NAME:$CR_EXTERNAL_PORT/callbacks"
-
-use_cr_http
 use_simulator_http
 use_mr_http
 use_agent_rest_http
@@ -53,8 +50,6 @@ fi
 
 start_mr
 
-start_cr
-
 start_consul_cbs
 
 prepare_consul_config      NOSDNC  ".consul_config.json"
@@ -89,7 +84,7 @@ fi
 # Create policies
 
 if [ "$PMS_VERSION" == "V2" ]; then
-    notificationurl="http://localhost:80"
+    notificationurl=$CR_PATH"/test"
 else
     notificationurl=""
 fi
@@ -207,8 +202,6 @@ api_delete_services 204 "service1"
 
 api_get_services 404 "service1"
 
-
-
 check_policy_agent_logs
 
 #### TEST COMPLETE ####