Versions Compared

Key

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

Triggered by merges in policy/engine, policy/drools-pdp, and policy/drools-applications

Test Case Id

Description

Pre-conditions

Test Steps

Expected Results

CSIT/External Lab

1

Perform   healthcheck for the Policy  using Healthcheck API

  •   Drools PDP
  •   XACML PDP
  •   PAP
  •   BRMSGateway
  • Policy docker image ready and policy   components (Drools, XACML, PAP, BRMS Gateway) should be up and running
  • Server and authentication details should   be configured at  $POLICY_HOME/config/feature-healthcheck.properties

API – healthcheck

Method - GET

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

(legacy policy system healthcheck with new REST API format)

All the policy components should return health status as “true”

CSIT - DONE

External Lab - DONE

2

Import/Load Use case template for the following use cases (VoLTE,   vCPE, vFW, vDNS)

 Policy components should be up and running

API – policyEngineImport

Method – POST

Endpoint:

https://<host>:8081/pdp/policyEngineImport

(legacy API)

Policy service models should be imported for the specified use cases. We should be able to create policy from here.

CSIT

3

Create and Push config Policy for the

following

vFW use

cases

case.

  •   vFW

 Policy components up and   running

API – CreateConfig

Method – PUT

Endpoint:

https://<host>:8081/pdp/api/createPolicy

(legacy API

)Config Policy should be created in Policy Engine (PAP4Create and Push vFW SDNC naming policyPolicy components up and running

)

CSIT - DONE

API -

createPolicy

pushPolicy  

Method - PUT

Endpoint:

https:// <host>:8081/pdp/api/

createPolicyNaming policy

pushPolicy

(legacy API)

Config Policy should be created in Policy Engine

CSIT - DONE

(PAP)

and

Config Policy should be pushed to the PDP group

CSIT - DONE
4Create and Push config Policy for the vDNS use case.Policy components up and   running

API – CreateConfig

Method – PUT

Endpoint:

https://<host>:8081/pdp/api/createPolicy

(legacy API)

API - pushPolicy  

Method - PUT

Endpoint:

https:// <host>:8081/pdp/api/pushPolicy

(legacy API)

Config Policy should be created in Policy Engine (PAP)

and


Config Policy should be pushed to the PDP group
CSIT - DONE
5Create and Push config Policy for the vCPE use case.Policy components up and   running

API – CreateConfig

Method – PUT

Endpoint:

https://<host>:8081/pdp/api/createPolicy

(legacy API)

API - pushPolicy  

Method - PUT

Endpoint:

https:// <host>:8081/pdp/api/pushPolicy

(legacy API)

Config Policy should be created in Policy Engine (PAP)

and


Config Policy should be pushed to the PDP group
CSIT-DONE
6Create and Push vFW SDNC naming policyPolicy components up and running

API - createPolicy  

Method - PUT

Endpoint:

https:// <host>:8081/pdp/api/createPolicy

Naming policy should be created in Policy Engine

CSIT - DONE

7Create and Push vPG SDNC naming policyPolicy components up and running

API - createPolicy  

Method - PUT

Endpoint:

https:// <host>:8081/pdp/api/createPolicy

Naming policy should be created in Policy EngineCSIT - DONE

8

Create and Push Operational policy for vFW use case

 Policy components up and running

API - createPolicy  

Method – PUT

Endpoint:

https://<host>:8081/pdp/api/createPolicy

(legacy API)

API - pushPolicy  

Method - PUT

Endpoint:

https:// <host>:8081/pdp/api/pushPolicy

(legacy API)

Operational Policy should be created in Policy Engine (PAP)

and

Operational Policy should be pushed to the PDP engine

CSIT - DONE

9

Create and Push Operational Policy to the PDP Engines for vDNS use case

 Policy components up and running

API - createPolicy  

Method – PUT

Endpoint:

https://<host>:8081/pdp/api/createPolicy

(legacy API)

API - pushPolicy  

Method - PUT

Endpoint:

https:// <host>:8081/pdp/api/pushPolicy

(legacy API)

Operational Policy should be created in Policy Engine (PAP)

and

Operational Policy should be pushed to the PDP engine

CSIT - DONE
10Create and Push Operational Policy to the PDP Engines for vCPE use case
5Create and Push vPG SDNC naming policy
Policy components up and running

API - createPolicy  

Method

-

PUT

Endpoint:

https://<host>:8081/pdp/api/createPolicy

Naming policy should be created in Policy EngineCSIT - DONE

6

Push Config policy to the PDP Engines for the following use   cases

  •   vFW
  •   vDNS
  •   vCPE

 Policy components up and running

(legacy API)

API - pushPolicy  

Method - PUT

Endpoint:

https:// <host>:8081/pdp/api/pushPolicy

(legacy API)

Config

Operational Policy should be created in Policy Engine (PAP)

and


Operational Policy should be pushed to the PDP

group

engine

CSIT - DONE

External Lab - Done

8

11Create and Push Operational
policy for vFW  Policy
Policy to the PDP Engines for VOLTE use case
  •   vFW
  •   vDNS
  •   vCPE
Policy components up and running

API - createPolicy  

Method – PUT

Endpoint:

https://<host>:8081/pdp/api/createPolicy

(legacy API)

API - pushPolicy  

Method - PUT

Endpoint:

https:// <host>:8081/pdp/api/pushPolicy

(

legac

legacy API)

Operational Policy should be created in Policy Engine (PAP)

CSIT - DONE9

Create

and

Push operational Policy to the PDP Engines for vDNS use case  vCPE

 Policy components up and running


Operational Policy should be pushed to the PDP

group

engine

CSIT - DONE
10

12

Retrieve the configs for the vFW use case

Policy components up and running

API – getConfig

Method – POST

Endpoint: https://<host>:8081/pdp/api/getConfig

(legacy API)

Both Config and Operational Policies configured should be retrieved successfully

CSIT - DONE
11
13

Retrieve the configs for the vDNS use case

Policy components up and running

API – getConfig

Method – POST

Endpoint: https://<host>:8081/pdp/api/getConfig

(legacy API)

Both Config and Operational Policies configured should be retrieved successfullyCSIT - DONE
12
14Retrieve the configs for the vCPE use casePolicy components up and running

API – getConfig

Method – POST

Endpoint: https://<host>:8081/pdp/api/getConfig

(legacy API)

Both Config and Operational Policies configured  should be retrieved successfullyCSIT - DONE
13
15List Configuration PoliciesList all configuration policies

API – listPolicy

Method – POST

Endpoint: https://<host>:8081/pdp/api/listPolicy

Should list all configuration policiesCSIT-Done
14
16Get ONAP Optimization Framework Policy for Hardware Platform Awareness(HPA)Retrieve OOF Policy for HPA

API – getConfig

Method – POST

Endpoint: https://<host>:8081/pdp/api/getConfig

Should return the HPA policy.CSIT-Done


Test Case Id

Description

Pre-conditions

Test Steps

Expected Results

CSIT/External Lab

1

Perform   healthcheck for the Policy components using Healthcheck API

  •   Drools PDP
  •   XACML PDP
  •   PAP
  •   BRMSGateway
  • Policy docker image ready and policy   components (Drools, XACML, PAP, BRMS Gateway) should be up and running
  • Server and authentication details should   be configured at  $POLICY_HOME/config/feature-healthcheck.properties

API – healthcheck

Method - GET

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

(legacy policy system healthcheck with new REST API format)

All the policy components should return health status as “true”

CSIT - DONE

External Lab - DONE

2

Import/Load Use case template for the following use cases (VoLTE,   vCPE, vFW, vDNS)

 Policy components should be up and running

API – policyEngineImport

Method – POST

Endpoint:

https://<host>:8081/pdp/policyEngineImport

(legacy API)

Policy service models should be imported for the specified use cases. We should be able to create policy from here.

CSIT

3

Create config Policy for the following use cases

  •   vFW
  •   vDNS
  •   vCPE
  • PCI

 Policy components up and   running

API – CreateConfig

Method – PUT

Endpoint:

https://<host>:8081/pdp/api/createPolicy

(legacy API)

Config Policy should be created in Policy Engine (PAP)

CSIT - DONE
4Create SDNC naming policiesPolicy components up and running
Naming policy should be created in Policy Engine (PAP)

CSIT - DONE

External Lab - Done

5Create Decision Guard Policy

Guard policy should be created in Policy Engine (PAP)

CSIT -

External Lab - Done

6

Push Config policy to the PDP Engines for the following use   cases

  •   vFW
  •   vDNS
  •   vCPE

 Policy components up and running

API - pushPolicy  

Method - PUT

Endpoint:

https:// <host>:8081/pdp/api/pushPolicy

(legacy API)

Config Policy should be pushed to the PDP group

CSIT - DONE

External Lab - Done

7Push Decision Guard Policy


CSIT

External Lab - DONE

8

Create Operational policy for the following use cases  

  •   vFW
  •   vDNS
  •   vCPE

 Policy components up and running

API - createPolicy  

Method – PUT

Endpoint:

https://<host>:8081/pdp/api/createPolicy

(legacy API)

Operational Policy should be created in Policy Engine (PAP)

CSIT - DONE

9

Push operational Policy to the PDP Engines for each use case

  •   vFW
  •   vDNS
  •   vCPE

 Policy components up and running

API - pushPolicy  

Method - PUT

Endpoint:

https:// <host>:8081/pdp/api/pushPolicy

(legacy API)

Operational Policy should be pushed to the PDP group

CSIT - DONE

10

Retrieve the configs for the following use cases

  •   vFW
  •   vDNS
  •   vCPE

Policy components up and running

API – getConfig

Method – POST

Endpoint: https://<host>:8081/pdp/api/getConfig

(legacy API)

Both Config and Operational Policies configured for each use   case should be retrieved successfully

CSIT - DONE

...