Versions Compared

Key

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

...

Triggered by merges in policy/drools-applications

Test Case Id

Description

Pre-conditions

Test Steps

Expected Results

CSIT/External Labs
1HealthcheckVerify that base barebone PDP-D comes alive

API – telemetry

Method - GET

Endpoint: https://<host>:6969/policy/pdpd/v1/engine/healthcheck

Verify healthcheckCSIT
2vFW

Verify vFW use case.

Simulators should be installed.

  1. Add vFW Operational Policy
  2. Inject ONSET
  3. Trace the vFW use case across the complete sequence of messages
Verify vFirewal completes sucessfullyCSIT
3vDNS

Verify Scale out use case.

Simulators should be installed.

  1. Add vDNS Operational Policy
  2. Inject ONSET
  3. Trace the vDNS use case across complete sequence of messages
Verify scale out completes sucessfullyCSIT
4vCPE

Verify vCPE use case.

Simulators should be installed.

  1. Add vCPE Operational Policy
  2. Inject ONSET
  3. Trace the vCPE use case across the complete sequence of messages
Verify vCPE completes sucessfullyCSIT

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


  • 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 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
5Create 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 200 201 and message "A new policy type has been successfully created."CSIT
6Retrieve Retrieve  all policies that have been createdcreated 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 policy has been created

APIpolicies

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.tcaCSIT
7Create a new Monitoring TCA policyRetrieve a specific policy version for a specific policy type
  • Policy API docker image available
  • onap.policies.Monitoring.scaleoutcdap.tca.hi.lo.app version 1.0.0 policy type has not been created
  • onap.scaleout.tca version 1.0.0 policy 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 onap.scaleout.tca version 1.0.0 policyCSIT
8Create 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
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 200 and message "A new policy has been successfully created."CSIT