Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Test Case Id

Description

Pre-conditions

Test Steps

Expected Results

CSIT External Labs

1

Perform healthcheck for policy design API service


  • Policy API docker image available

API – healthcheck

Method - GET

Endpoint: http://<host>:6969/policy/api/v1/healthcheck

The Policy API should return health status as “true”

CSIT/External Lab
2Retrieve statistics of policy design API invocation
  • Policy API docker image available

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
3Retrieve pre-loaded generic policy types
  • Policy API docker image available

API – policytypes

Method - GET

Endpoint: http://<host>:6969/policy/api/v1/policytypes

The Policy API should return a list of pre-loaded generic policy typesCSIT
4Retrieve Monitoring related policy typesCreate a new TCA policy type for DCAE TCA microservice
  • Policy API docker image available
  • DCAE TCA ms policy type is not created yet

API – policytypes/onap.policies.Monitoring

Method - GETPOST

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 typesCSIT5Create a new TCA policy type for DCAE TCA microservicecode 201 and message "A new policy type has been successfully created."CSIT
5Retrieve Monitoring related policy types
  • Policy API docker image available
  • DCAE TCA ms policy type is not created yet

API – policytypes/onap.policies.Monitoring

Method - POSTGET

Endpoint: http://<host>:6969/policy/api/v1/policytypes/onap.policies.Monitoring

The Policy API should return code 201 and message "A new policy type has been successfully created."a list of onap.policies.Monitoring and derived onap.policies.Monitoring.cdap.tca.hi.lo.app policy typesCSIT
6Retrieve  all policies created for a specific policy typeCreate a new Monitoring TCA policy
  • Policy API docker image available
  • onap.policies.Monitoring.cdap.tca.hi.lo.app version 1.0.0 policy type has been created
  • onap.scaleout.tca policy has been created

APIpolicytypes/onap.policies.Monitoring.cdap.tca.hi.lo.app/versions/1.0.0/policies

Method - GETPOST

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.scaleout.tcacode 201 and message "A new policy has been successfully created."CSIT
7Retrieve a specific policy version Retrieve  all policies created for a specific policy type
  • Policy API docker image available
  • onap.policies.Monitoring.cdap.tca.hi.lo.app version 1.0.0 policy type has been created
  • onap.scaleout.tca version 1.0.0 policy has been created

API – policytypes/onap.policies.Monitoring.cdap.tca.hi.lo.app/versions/1.0.0/policies/onap.scaleout.tca/versions/1.0.0

Method - GET

Method - GET

Endpoint: http://<host>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 a list of policies that have been created for onap.policies.Monitoring.scaleoutcdap.tca.hi.lo.app version 1.0.0 policy type, including onap.scaleout.tcaCSIT
8Create a new Monitoring TCA policyRetrieve a specific policy version for a specific policy type
  • Policy API docker image available
  • onap.policies.Monitoring.cdap.tca.hi.lo.app.hi.lo.app version 1.0.0 policy type has been created
  • onap.scaleout.tca version 1.0.0 policy type has been created

APIpolicytypes/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 code 201 and message "A new policy has been successfully created."onap.scaleout.tca version 1.0.0 policyCSIT
9Delete all versions of a policy
  • Policy API docker image available
  • onap.policies.Monitoring.cdap.tca.hi.lo.app version 1.0.0 policy type has been created
  • onap.scaleout.tca version 1.0.0 policy has been created

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 200CSIT
10Delete a policy type version
  • Policy API docker image available
  • onap.policies.Monitoring.cdap.tca.hi.lo.app version 1.0.0 policy type has been created
  • No policy exists for onap.policies.Monitoring.cdap.tca.hi.lo.app version 1.0.0 policy type

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 200CSIT

...