+ a1pms_api_put_services_keepalive 404 "service1"
+ a1pms_api_put_services_keepalive 404 "service2"
+ a1pms_api_put_services_keepalive 404 "service3"
+ a1pms_api_put_services_keepalive 404 "service4"
+
+ # Policy delete after timeout
+ a1pms_api_put_service 201 "service10" 600 "$CR_SERVICE_APP_PATH_0/service10"
+
+ sim_put_policy_type 201 ricsim_g1_1 1 testdata/OSC/sim_1.json
+
+ sim_put_policy_type 201 ricsim_g3_1 STD_QOS2_0.1.0 testdata/STD2/sim_qos2.json
+
+ a1pms_equal json:rics 3 300
+
+ #a1pms_equal json:policy_schemas 2 120
+
+ a1pms_equal json:policies 0
+
+ notificationurl=$CR_SERVICE_APP_PATH_0"/test"
+
+ if [ "$A1PMS_VERSION" == "V3" ]; then
+ a1pms_equal json:policytypes 3 120
+ a1pms_api_post_policy_v3 201 "service10" ricsim_g1_1 1 5000 NOTRANSIENT $notificationurl testdata/OSC/pi1_template.json
+ a1pms_api_post_policy_v3 201 "service10" ricsim_g2_1 NOTYPE 5100 NOTRANSIENT $notificationurl testdata/STD/pi1_template.json
+
+ a1pms_api_post_policy_v3 201 "service10" ricsim_g3_1 STD_QOS2_0.1.0 5200 NOTRANSIENT $notificationurl testdata/STD2/pi_qos2_template.json
+
+ else
+ a1pms_equal json:policy-types 3 120
+ a1pms_api_put_policy 201 "service10" ricsim_g1_1 1 5000 NOTRANSIENT $notificationurl testdata/OSC/pi1_template.json
+ a1pms_api_put_policy 201 "service10" ricsim_g2_1 NOTYPE 5100 NOTRANSIENT $notificationurl testdata/STD/pi1_template.json
+
+ a1pms_api_put_policy 201 "service10" ricsim_g3_1 STD_QOS2_0.1.0 5200 NOTRANSIENT $notificationurl testdata/STD2/pi_qos2_template.json
+
+ fi
+
+ a1pms_equal json:policies 3