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 - DONE

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 - DONE

External Lab -

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-DONE
4Create 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

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-DONE
5Retrieve Monitoring related policy types
  • Policy API docker image available
  • DCAE TCA ms policy type is created

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 typesCSIT-DONE
6Create 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

APIpolicytypes/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-DONE
7Retrieve  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.restart.tca policy has been created

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.restart.tcaCSIT-DONE
8Delete one specific version 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.restart.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.restart.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.restart.tca/versions/1.0.0

The Policy API should delete specific version of onap.restart.tca policy and return code 200 with Non-NULL response.

Second Call for same version would return 404.

CSIT-DONE