- for ((i=1; i<=$NUM_RICS; i++))
- do
- if [ $interface == "DMAAP-BATCH" ]; then
- api_put_policy_batch 201 "serv1" ricsim_g3_$i STD_QOS2_0.1.0 $INSTANCE_ID NOTRANSIENT $notificationurl testdata/STD2/pi_qos2_template.json $NUM_INSTANCES
- elif [ $interface == "DMAAP" ] || [ $interface == "REST" ]; then
- api_put_policy 201 "serv1" ricsim_g3_$i STD_QOS2_0.1.0 $INSTANCE_ID NOTRANSIENT $notificationurl testdata/STD2/pi_qos2_template.json $NUM_INSTANCES
- fi
- if [ $interface == "DMAAP" ] || [ $interface == "DMAAP-BATCH" ]; then
- MR_MESSAGES=$(($MR_MESSAGES+$NUM_INSTANCES))
- fi
- sim_equal ricsim_g3_$i num_instances $NUM_INSTANCES
- INSTANCE_ID=$(($INSTANCE_ID+$NUM_INSTANCES))
- INSTANCES=$(($INSTANCES+$NUM_INSTANCES))
- done
-
- if [ "$PMS_VERSION" == "V2" ]; then
- api_equal json:policy-instances $INSTANCES
- else
- api_equal json:policy_ids $INSTANCES
+ if [ $interface == "DMAAP" ] || [ $interface == "DMAAP-BATCH" ]; then
+ MR_MESSAGES=$(($MR_MESSAGES+$NUM_INSTANCES))