Recent changes were made to apex-pdp to handle the delta policy lists sent from PAP.
This page is where we will document all test cases design and results.
These tests have been carried out on a full ONAP deployment to ensure that apex is working as expected after the recent changes made to handle the list(s) of delta policies. Scanning through the full list of policies in apex pdp has been eradicated as Pap now performs this task and sends just delta policies to Apex. Below are the test cases and results from the tests and also a postman collection containing the test flow.
Postman Collection: Apex Delta Policies Test Cases.postman_collection.json
Postman collection includes various steps, event to send to apex and policies to test.
Test Cases
Test # | Description | Result |
---|---|---|
1 | Deploy Policy #1. Trigger event and make sure expected output is fired | Output From Triggered Event "policyExecutedCount":1,"policyExecutedSuccessCount":1,"policyExecutedFailCount":0 |
2 | Deploy Policy #2. Test it is running. | |
3 | Undeploy Policy #1. Verify Policy #2 is still running. | |
4 | Undeploy Policy #2. Verify no policies are running. | |
5 | Deploy Policy #1, #2, #3. Make sure all are running. | |
6 | Undeploy Policy #2. Make sure Policy #1 and Policy #2 are running. Remove Policies #1 & #3. Make sure none are running. |