Merge "Adaption to new ECS interface and PMS interface prefix"
[nonrtric.git] / test / common / agent_api_functions.sh
index 98a8b56..1cd430e 100644 (file)
@@ -308,7 +308,7 @@ api_equal() {
        if [ $# -eq 2 ] || [ $# -eq 3 ]; then
                if [[ $1 == "json:"* ]]; then
                        if [ "$PMS_VERSION" == "V2" ]; then
-                               __var_test "Policy Agent" $PA_PATH"/v2/" $1 "=" $2 $3
+                               __var_test "Policy Agent" $PA_PATH$PMS_API_PREFIX"/v2/" $1 "=" $2 $3
                        else
                                __var_test "Policy Agent" $PA_PATH"/" $1 "=" $2 $3
                        fi