Fixing FTC's with respect to change in A1-Sim code using snapshot image 71/11971/1
authorrohithrajneesh <rohith.rajneesh@est.tech>
Wed, 25 Oct 2023 20:29:53 +0000 (21:29 +0100)
committerrohithrajneesh <rohith.rajneesh@est.tech>
Wed, 25 Oct 2023 20:32:59 +0000 (21:32 +0100)
ISSUE-ID: NONRTRIC-954
Change-Id: I1925a5908329d20d360c5bf8778746f72df97f53
Signed-off-by: rohithrajneesh <rohith.rajneesh@est.tech>
test/auto-test/FTC150.sh
test/common/sdnc_api_functions.sh
test/cr/app/requirements.txt
test/prodstub/app/requirements.txt

index 4d921d8..25283a5 100755 (executable)
@@ -128,8 +128,8 @@ for __nb_httpx in $NB_TESTED_PROTOCOLS ; do
         controller_api_get_A1_policy_status 200 OSC ricsim_g1_1 1 4000
         controller_api_get_A1_policy_status 200 STD ricsim_g2_1 5000
 
-        VAL='NOT IN EFFECT'
-        controller_api_get_A1_policy_status 200 OSC ricsim_g1_1 1 4000 "$VAL" "false"
+        VAL='NOT_ENFORCED'
+        controller_api_get_A1_policy_status 200 OSC ricsim_g1_1 1 4000 "$VAL" "OTHER_REASON"
         controller_api_get_A1_policy_status 200 STD ricsim_g2_1 5000 "UNDEFINED"
 
         RESP=202
index 511d258..4fd9de4 100644 (file)
@@ -588,9 +588,8 @@ 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\":\"????\"}"
+            targetJson="{\"enforceStatus\":\"$6\""
+            targetJson=$targetJson",\"enforceReason\":\"$7\"}"
         fi
                paramError=0
     elif [ $# -ge 4 ] && [ $2 == "STD" ]; then
index d1785cb..7366fdd 100644 (file)
@@ -1,3 +1,3 @@
-Flask==2.0.1
+Flask==3.0.0
 
 
index ed6e2d4..1343bc4 100644 (file)
@@ -1,3 +1,3 @@
-Flask==2.0.1
+Flask==3.0.0
 jsonschema==3.2.0
 requests==2.24.0