-if [ "$PMS_VERSION" == "V2" ]; then
-
- api_equal json:policy-types 3 300
-
- for ((i=1; i<=$OSC_NUM_RICS; i++))
- do
- api_equal json:policy-types?ric_id=$RIC_SIM_PREFIX"_g1_"$i 2 120
- done
-
- # Check the schemas in OSC
- for ((i=1; i<=$OSC_NUM_RICS; i++))
- do
- api_get_policy_type 200 100 demo-testdata/OSC/qos-agent-modified.json
- api_get_policy_type 200 20008 demo-testdata/OSC/tsa-agent-modified.json
- done
-else
- api_equal json:policy_types 3 300
-
- for ((i=1; i<=$OSC_NUM_RICS; i++))
- do
- api_equal json:policy_types?ric=$RIC_SIM_PREFIX"_g1_"$i 2 120
- done
-
- # Check the schemas in OSC
- for ((i=1; i<=$OSC_NUM_RICS; i++))
- do
- api_get_policy_schema 200 100 demo-testdata/OSC/qos-agent-modified.json
- api_get_policy_schema 200 20008 demo-testdata/OSC/tsa-agent-modified.json
- done
-fi
-