...
Triggered by merges in policy/drools-applications
Test Case Id | Description | Pre-conditions | Test Steps | Expected Results | CSIT/External Labs |
---|---|---|---|---|---|
1 | Healthcheck | Verify that base barebone PDP-D comes alive | API – telemetry Method - GET Endpoint: https://<host>:6969/policy/pdpd/v1/engine/healthcheck | Verify healthcheck | CSIT |
2 | vFW | Verify vFW use case. Simulators should be installed. |
| Verify vFirewal completes sucessfully | CSIT |
3 | vDNS | Verify Scale out use case. Simulators should be installed. |
| Verify scale out completes sucessfully | CSIT |
4 | vCPE | Verify vCPE use case. Simulators should be installed. |
| Verify vCPE completes sucessfully | CSIT |
Triggered by merges in policy/xacml-pdp
...
Test Case Id | Description | Pre-conditions | Test Steps | Expected Results | CSIT External Labs |
---|---|---|---|---|---|
1 | Perform healthcheck for policy design API service |
| API – healthcheck Method - GET Endpoint: http://<host>:6969/policy/api/v1/healthcheck | The Policy API should return health status as “true” | CSIT/External Lab |
2 | Retrieve statistics of policy design API invocation |
| API – statistics Method - GET Endpoint: http://<host>:6969/policy/api/v1/statistics | The Policy API should return API invocation statistics report with code set to "200" | CSIT |
3 | Retrieve pre-loaded generic policy types |
| API – policytypes Method - GET Endpoint: http://<host>:6969/policy/api/v1/policytypes | The Policy API should return a list of pre-loaded generic policy types | CSIT |
4 | Retrieve Monitoring related policy types |
| API – policytypes/onap.policies.Monitoring Method - GET Endpoint: http://<host>:6969/policy/api/v1/policytypes/onap.policies.Monitoring | The Policy API should return a list of onap.policies.Monitoring and derived onap.policies.Monitoring.cdap.tca.hi.lo.app policy types | CSIT |
5 | Create a new TCA policy type for DCAE TCA microservice |
| API – policytypes Method - POST Endpoint: http://<host>:6969/policy/api/v1/policytypes | The Policy API should return code 200 201 and message "A new policy type has been successfully created." | CSIT |
6 | Retrieve Retrieve all policies that have been createdcreated for a specific policy type |
| API – policies Method - GET policytypes/onap.policies.Monitoring.cdap.tca.hi.lo.app/versions/1.0.0/policies Method - GET Endpoint: httpEndpoint: http://<host>:6969/policy/api/v1/policytypes/onap.policies.Monitoring.cdap.tca.hi.lo.app/versions/1.0.0/policies | The Policy API should return a list of policies that have been created , including for onap.scaleoutpolicies.Monitoring.cdap.tca.hi.lo.app version 1.0.0 policy type, including onap.scaleout.tca | CSIT |
7 | Create a new Monitoring TCA policyRetrieve a specific policy version for a specific policy type |
| API – policytypes/onap.policies.Monitoring.cdap.tca.hi.lo.app/versions/1.0.0/policies/onap.scaleout.tca/versions/1.0.0 Method - POSTGET Endpoint: http://<host>:6969/policy/api/v1/policytypes/onap.policies.Monitoring.cdap.tca.hi.lo.app/versions/1.0.0/policies/onap.scaleout.tca/versions/1.0.0 | The Policy API should return onap.scaleout.tca version 1.0.0 policy | CSIT |
8 | Create a new Monitoring TCA policy |
| API – policytypes/onap.policies.Monitoring.cdap.tca.hi.lo.app/versions/1.0.0/policies Method - POST Endpoint: http://<host>:6969/policy/api/v1/policytypes/onap.policies.Monitoring.cdap.tca.hi.lo.app/versions/1.0.0/policies | The Policy API should return code 201 and message "A new policy has been successfully created." | CSIT |
9 | Delete all versions of a policy |
| API – policytypes/onap.policies.Monitoring.cdap.tca.hi.lo.app/versions/1.0.0/policies/onap.scaleout.tca Method - DELETE Endpoint: http://<host>:6969/policy/api/v1/policytypes/onap.policies.Monitoring.cdap.tca.hi.lo.app/versions/1.0.0/policies/onap.scaleout.tca | The Policy API should delete all versions of onap.scaleout.tca policy and return code 200 | CSIT |
10 | Delete a policy type version |
| API – policytypes/onap.policies.Monitoring.cdap.tca.hi.lo.app/versions/1.0.0 Method - DELETE Endpoint: http://<host>:6969/policy/api/v1/policytypes/onap.policies.Monitoring.cdap.tca.hi.lo.app/versions/1.0.0 | The Policy API should delete onap.policies.Monitoring.cdap.tca.hi.lo.app version 1.0.0 policy type and return code 200 and message "A new policy has been successfully created." | CSIT |