X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=near-rt-ric-simulator%2Fric-plt%2Fa1%2Fcommands.sh;fp=near-rt-ric-simulator%2Fric-plt%2Fa1%2Fcommands.sh;h=0000000000000000000000000000000000000000;hb=28ee8a58993b6dc3a98ca2ab3286f81c035fea7a;hp=4e873dbaf9e5a98ddf3f8f9cce6a31765f9092be;hpb=e2ac0dcf30eaf828a7c7bbd722730410f4110030;p=nonrtric.git diff --git a/near-rt-ric-simulator/ric-plt/a1/commands.sh b/near-rt-ric-simulator/ric-plt/a1/commands.sh deleted file mode 100755 index 4e873dba..00000000 --- a/near-rt-ric-simulator/ric-plt/a1/commands.sh +++ /dev/null @@ -1,40 +0,0 @@ -#!/bin/bash -# Different commands for the simulator. -# By running this, nothing should return an error. - -# Make a test -curl -v "http://localhost:8085/" - -# PUT a policy type STD_QoSNudging_0.2.0 -curl -X PUT -v "http://localhost:8085/policytypes/STD_QoSNudging_0.2.0" -H "accept: application/json" -H "Content-Type: application/json" --data-binary @policy_type_STD_QoSNudging_0.2.0.json - -# GET policy types -curl -v "http://localhost:8085/A1-P/v1/policytypes" - -# GET policy type STD_QoSNudging_0.2.0 -curl -v "http://localhost:8085/A1-P/v1/policytypes/STD_QoSNudging_0.2.0" - -# PUT a policy instance pi1 -curl -X PUT -v "http://localhost:8085/A1-P/v1/policies/pi1?policyTypeId=STD_QoSNudging_0.2.0" -H "accept: application/json" -H "Content-Type: application/json" --data-binary @policy_instance_1_STD_QoSNudging_0.2.0.json - -# PUT a policy instance pi2 -curl -X PUT -v "http://localhost:8085/A1-P/v1/policies/pi2?policyTypeId=STD_QoSNudging_0.2.0" -H "accept: application/json" -H "Content-Type: application/json" --data-binary @policy_instance_2_STD_QoSNudging_0.2.0.json - -# SET status for pi1 and pi2 -curl -X PUT "http://localhost:8085/pi1/NOT_ENFORCED/300" -curl -X PUT "http://localhost:8085/pi2/ENFORCED" - -# GET policies -curl -v "http://localhost:8085/A1-P/v1/policies" - -# DELETE policy instance pi2 -curl -X DELETE -v "http://localhost:8085/A1-P/v1/policies/pi2" - -# PUT a different policy instance pi1 (i.e. update it) -curl -X PUT -v "http://localhost:8085/A1-P/v1/policies/pi1?policyTypeId=STD_QoSNudging_0.2.0" -H "accept: application/json" -H "Content-Type: application/json" --data-binary @policy_instance_1_bis_STD_QoSNudging_0.2.0.json - -# GET policy instance pi1 -curl -v "http://localhost:8085/A1-P/v1/policies/pi1" - -# GET policy status for pi1 -curl -v "http://localhost:8085/A1-P/v1/policystatus/pi1"