Versions Compared

Key

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

...

Test Case Id

Description

Pre-conditions

Test Steps

Expected Results

1

Perform healthcheck for the Policy SDC ServiceDistribution applicationof the component

Policy distribution docker image is available

API – healthcheck

Method - GET

Endpoint: http https://<host>:6969/healthcheck

The Policy PSSD component should return health status as “true”

2Query component for statisticsPolicy distribution docker image is available

API - Statisticsstatistics

Method - GET

Endpoint: httphttps://<host>:6969/statistics

Statistics on execution are available and saneThe component should return the current statistics of the component.

Triggered by merges in policy/pap (NOT FINISHED)

Test Case Id

Description

Pre-conditions

Test Steps

Expected Results

1
Health Check
Perform healthcheck of the componentPAP docker image is available

API – healthcheck

Method - GET

Endpoint:

http

https://<host>:6969/healthcheck

The component should return health status as “true”
2
Statistics
Query component for statisticsPAP docker image is available

API -

Statistics

statistics

Method - GET

Endpoint:

http

https://<host>:6969/statistics

3Get Registered PDPs
The component should return the current statistics of the component.
3Query pdp group informationPAP docker image is available

API - pdps

Method - GET

Endpoint: https:{url}:{port}/pap/v1/pdps

The component should return the list of PDP groups and subgroups together with the policies that are deployed on each PDP group and subgroup.
4Create
PDP Group
PDP group & subgroupPAP docker image is available

API - pdps

Method - POST

Endpoint: https:{url}:{port}/pap/v1/pdps

The component should create the relevant PDP group & subgroup in the database and return with operation success message/code.
5Deploy policy to PDP group & subgroup

PAP docker image is available

PAP docker image is available

API - pdps

Method - POST

Endpoint: https:{url}:{port}/pap/v1/pdps

The component should map the relevant policies with the corresponding PDP group & subgroup in database. Deploy the policy in relevant PDP and return with operation success message/code.
6Query pdp group statistics

PAP docker image is available

PDP docker image is available

API - pdps

Method - GET

Endpoint: https:{url}:{port}/pap/v1/pdps/statistics

The PAP component must return the statistics for PDP groups, subgroups and individual PDPs.
7Delete PDP group & subgroup

PAP docker image is available

PDP docker image is available

API - pdps

Method - DELETE

Endpoint: https:{url}:{port}/pap/v1/pdps?name=<group_name>&version=<version>

The component should delete the relevant PDP group & subgroup from database and kill the corresponding PDP instances (running as kubernetes pods). Finally, return with operation success message/code.


Triggered by merges in policy/drools-pdp (NOT FINISHED)

...