Doc update with j-release links (master branch)
[nonrtric.git] / test / common / sdnc_api_functions.sh
index 511d258..a18afe3 100644 (file)
@@ -588,9 +588,14 @@ controller_api_get_A1_policy_status() {
     if [ $# -ge 5 ] && [ $2 == "OSC" ]; then
         url="$ric_id/a1-p/policytypes/$4/policies/$UUID$5/status"
         if [ $# -gt 5 ]; then
-            targetJson="{\"instance_status\":\"$6\""
-            targetJson=$targetJson",\"has_been_deleted\":\"$7\""
-            targetJson=$targetJson",\"created_at\":\"????\"}"
+            if [[ $TEST_ENV_PROFILE =~ ^ORAN-[A-H] ]] || [[ $TEST_ENV_PROFILE =~ ^ONAP-[A-L] ]]; then
+              targetJson="{\"instance_status\":\"$6\""
+              targetJson=$targetJson",\"has_been_deleted\":\"$7\""
+              targetJson=$targetJson",\"created_at\":\"????\"}"
+            else
+              targetJson="{\"enforceStatus\":\"$6\""
+              targetJson=$targetJson",\"enforceReason\":\"$7\"}"
+            fi
         fi
                paramError=0
     elif [ $# -ge 4 ] && [ $2 == "STD" ]; then