...
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 - DONE 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 - DONE External Lab - |
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 | 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 201 and message "A new policy type has been successfully created." | CSIT |
5 | 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 |
6 | 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 |
7 | Retrieve all policies created for a specific policy type |
| API – policytypes/onap.policies.Monitoring.cdap.tca.hi.lo.app/versions/1.0.0/policies Method - GET 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 a list of policies that have been created for onap.policies.Monitoring.cdap.tca.hi.lo.app version 1.0.0 policy type, including onap.scaleoutrestart.tca | CSIT |
8 | Delete all versions one specific version of a policy |
| API – policytypes/onap.policies.Monitoring.cdap.tca.hi.lo.app/versions/1.0.0/policies/onap.scaleoutrestart.tca/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/policies/onap.scaleoutrestart.tca/versions/1.0.0 | The Policy API should delete all versionsspecific version of onap. scaleoutrestart.tca policy and return code 200 with Non-NULL response. Second Call for same version would return 404. | CSIT |