Table of Contents |
---|
Test Case Id | Description | Pre-conditions | Test Steps | Expected Results |
---|---|---|---|---|
1 | Perform healthcheck for the Policy components using Healthcheck API
|
| API – healthcheck Method - GET Endpoint: http://<host>:8081/healthcheck | All the policy components should return health status as “true” |
|
|
|
|
|
3 | Create config Policy for the following use cases
| Policy components up and running | API – CreateConfig Method – PUT Endpoint: https://<host>:8081/Pdp/createPolicy | Config Policy should be created in Policy Engine (PAP) |
4 | Push Config policy to the PDP Engines for the following use cases
| Policy components up and running | API - pushPolicy Method - PUT Endpoint: https:// <host>:8081/Pdp/pushPolicy | Config Policy should be pushed to the PDP group |
5 | Create Operational policy for the following use cases
| Policy components up and running | API - createPolicy Method – PUT Endpoint: https://<host>:8081/Pdp/createPolicy | Operational Policy should be created in Policy Engine (PAP) |
6 | Push operational Policy to the PDP Engines for each use case
| Policy components up and running | API - pushPolicy Method - PUT Endpoint: https:// <host>:8081/Pdp/pushPolicy | Operational Policy should be pushed to the PDP group |
7 | Retrieve the configs for the following use cases
| Policy components up and running | API – getConfig Method – POST Endpoint: https://<host>:8081/Pdp/getConfig | Both Config and Operational Policies configured for each use case should be retrieved successfully |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
*TODONOTE: FillRobot inmust basedadd onpreload newfor nameddummy querymodule fromfor abovethis to work. { "requestDetails": { "modelInfo": { "modelType": "vfModule", "modelInvariantId": "6d760188356a1cff-9a2471f2-451a4086-b05b9980-e08b86cb94f2a2927ce11c1c", "modelVersionId": "93facad96b93d804-55f2cfc8-4fe04be3-957492cc-814c2bc2d0719336d135859a", "modelName": "Vloadbalancer..base_vlbdnsscaling..module-01", "modelVersion": "1" }, "cloudConfiguration": { "lcpCloudRegionId": "RegionOne", "tenantId": "41d6d38489bd40b09ea8a6b6b852dcbd" }, "requestInfo": { "instanceName": "vDNS_vLB1113-1", "source": "POLICY", "suppressRollback": false, "requestorId": "policy" }, "relatedInstanceList": [ { "relatedInstance": { "instanceId": "3b12f31f-8f2d-4f5c-b875-61ff1194b941", "modelInfo": { "modelType": "service", "modelInvariantId": "1321d60d-f7ff-4300-96c2-6bf0b3268b7a", "modelVersionId": "732d4692-4b97-46f9-a996-0b3339e88c50", "modelName": "vLoadBalancer-1106", "modelVersion": "1.0" } } }, { "relatedInstance": { "instanceId": "db373a8d-f7be-4d02-8ac8-6ca4c305d144", "modelInfo": { "modelType": "vnf", "modelInvariantId": "cee050ed-92a5-494f-ab04-234307a846dc", "modelVersionId": "fd65becc-6b2c-4fe8-ace9-cc29db9a3da2", "modelName": "vLoadBalancer", "modelVersion": "1.0", "modelCustomizationName": "vLoadBalancer 0" } } } ], "requestParameters": {} } } |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
SUCCESS: { "requestReferences": { "instanceId": "ff305d54-75b4-ff1b-bdb2-eb6b9e5460ff", "requestId": "e4f95e0c-a013-4530-8e59-c5c5f9e539b6" }, "httpResponseCode": 200 } |
...