diff options
author | a.sreekumar <ajith.sreekumar@bell.ca> | 2021-02-18 14:13:29 +0000 |
---|---|---|
committer | a.sreekumar <ajith.sreekumar@bell.ca> | 2021-02-19 15:21:56 +0000 |
commit | de818b6638b3fe537017fd103c0b9997b707dce0 (patch) | |
tree | 3bd3da682c03c6bcac15104ab10a39738f29ad1b /postman | |
parent | cd8c7690c302973da1811be81a5453aef7469c10 (diff) |
Update Pdp policy status during registration or State change
The Pdp Policy Status is not updated during the pdp heartbeat
handling/registration flow, or during State change.
When a PDP goes down the pdppolicystatus gets cleared. But when the PDP
comes back online, PAP deploys the right policies into it, but the
deployment status was not getting updated.
Similarly, when the State is changed to PASSIVE, the status should be
undeployed, and when the state is changed back to ACTIVE, then the
status should be deployed for any active policies in any PDP.
These issues are fixed here.
Updating postman collection.
Also updating the csit test to check for 202 instead of 200 for the
deployment api response.
Change-Id: I1e05f22df23daaa8da8be1376413e995be2376f3
Issue-ID: POLICY-2526
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
Diffstat (limited to 'postman')
-rw-r--r-- | postman/pap-api-collection.json | 140 |
1 files changed, 129 insertions, 11 deletions
diff --git a/postman/pap-api-collection.json b/postman/pap-api-collection.json index 34112b73..44ad24d6 100644 --- a/postman/pap-api-collection.json +++ b/postman/pap-api-collection.json @@ -1,6 +1,6 @@ { "info": { - "_postman_id": "05831254-6fad-419f-b10e-ff21cbbd365a", + "_postman_id": "d78b72f0-00b1-44c2-88c4-98a7a51b3932", "name": "Policy Framework Administration API", "description": "This collection lists all the Administration API's supported by ONAP Policy Framework. These API's are used to perform administrative operations for managing policies, groups, statistics & health information for all registered PDP engines.", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" @@ -350,7 +350,7 @@ "response": [] }, { - "name": "Fetch Policy deployment Status", + "name": "Fetch All Policy Status", "protocolProfileBehavior": { "disableBodyPruning": true }, @@ -373,7 +373,7 @@ "raw": "" }, "url": { - "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/policies/deployed/operational.modifyconfig", + "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/policies/status", "host": [ "{{POLICY-PAP-URL}}" ], @@ -382,11 +382,93 @@ "pap", "v1", "policies", - "deployed", + "status" + ] + }, + "description": "This is a generic API to fetch status of all policies in the registered PDP instances." + }, + "response": [] + }, + { + "name": "Fetch All Policy Status in a Group", + "protocolProfileBehavior": { + "disableBodyPruning": true + }, + "request": { + "method": "GET", + "header": [ + { + "key": "Content-Type", + "type": "text", + "value": "application/json" + }, + { + "key": "Accept", + "type": "text", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "" + }, + "url": { + "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/policies/status/defaultGroup", + "host": [ + "{{POLICY-PAP-URL}}" + ], + "path": [ + "policy", + "pap", + "v1", + "policies", + "status", + "defaultGroup" + ] + }, + "description": "This is a generic API to fetch status of all policies in the registered PDP instances in a PDP Group." + }, + "response": [] + }, + { + "name": "Fetch Policy Status in a Group", + "protocolProfileBehavior": { + "disableBodyPruning": true + }, + "request": { + "method": "GET", + "header": [ + { + "key": "Content-Type", + "type": "text", + "value": "application/json" + }, + { + "key": "Accept", + "type": "text", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "" + }, + "url": { + "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/policies/status/defaultGroup/operational.modifyconfig", + "host": [ + "{{POLICY-PAP-URL}}" + ], + "path": [ + "policy", + "pap", + "v1", + "policies", + "status", + "defaultGroup", "operational.modifyconfig" ] }, - "description": "This is an API to fetch status of a specific deployed policy in the registered PDP instances." + "description": "This is a generic API to fetch status of all versions of a policy in the registered PDP instances in a PDP Group." }, "response": [] }, @@ -431,6 +513,47 @@ "response": [] }, { + "name": "Fetch Policy deployment Status", + "protocolProfileBehavior": { + "disableBodyPruning": true + }, + "request": { + "method": "GET", + "header": [ + { + "key": "Content-Type", + "type": "text", + "value": "application/json" + }, + { + "key": "Accept", + "type": "text", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "" + }, + "url": { + "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/policies/deployed/operational.modifyconfig", + "host": [ + "{{POLICY-PAP-URL}}" + ], + "path": [ + "policy", + "pap", + "v1", + "policies", + "deployed", + "operational.modifyconfig" + ] + }, + "description": "This is an API to fetch status of a specific deployed policy in the registered PDP instances." + }, + "response": [] + }, + { "name": "Fetch All PDPs Statistics", "protocolProfileBehavior": { "disableBodyPruning": true @@ -650,7 +773,6 @@ { "listen": "prerequest", "script": { - "id": "d6987a6d-a224-4288-a7bd-4c1c209a2637", "type": "text/javascript", "exec": [ "" @@ -660,7 +782,6 @@ { "listen": "test", "script": { - "id": "731a9aab-e8f2-4dc6-941c-ac7e142c5177", "type": "text/javascript", "exec": [ "" @@ -670,17 +791,14 @@ ], "variable": [ { - "id": "bc82ca5c-f667-4118-9da1-e78a9b532b91", "key": "USER", "value": "healthcheck", "type": "string" }, { - "id": "1c2733ff-2507-49e8-ba07-b0f85ea97914", "key": "PASSWORD", "value": "zb!XztG34", "type": "string" } - ], - "protocolProfileBehavior": {} + ] }
\ No newline at end of file |