Add new guard filter policy type feature 46/111346/2
authorPamela Dragosh <pdragosh@research.att.com>
Mon, 17 Aug 2020 20:45:30 +0000 (16:45 -0400)
committerPamela Dragosh <pdragosh@research.att.com>
Mon, 17 Aug 2020 23:41:07 +0000 (19:41 -0400)
commitad9d827a43211c087fe4bcf575134aea3a5b316e
treecff37aeb77e3b7dc9ec899c7bb04961f40c695ea
parentabbabd038c2575d3fcdc07d25313e741d32c1c90
Add new guard filter policy type feature

* Added new Policy Guard filter Policy type.

* Enhanced translator tests to ensure bad filter policies
are detected.

* Added new filter application test to ensure new guard
propertly creates xacml policies.

Issue-ID: POLICY-2590
Change-Id: Ifc047a33084ce45b67be98a61f660d7a8c9d8615
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
12 files changed:
applications/guard/src/main/java/org/onap/policy/xacml/pdp/application/guard/GuardPdpApplication.java
applications/guard/src/main/java/org/onap/policy/xacml/pdp/application/guard/GuardPolicyRequest.java
applications/guard/src/main/java/org/onap/policy/xacml/pdp/application/guard/GuardTranslator.java
applications/guard/src/test/java/org/onap/policy/xacml/pdp/application/guard/GuardPdpApplicationTest.java
applications/guard/src/test/java/org/onap/policy/xacml/pdp/application/guard/GuardPolicyRequestTest.java
applications/guard/src/test/java/org/onap/policy/xacml/pdp/application/guard/GuardTranslatorTest.java
applications/guard/src/test/resources/requests/guard.filter.json [new file with mode: 0644]
applications/guard/src/test/resources/requests/guard.vfCount.json
applications/guard/src/test/resources/test-bad-policies.yaml
applications/guard/src/test/resources/test-policies.yaml
applications/guard/src/test/resources/test.policy.guard.filters.yaml [new file with mode: 0644]
main/src/test/java/org/onap/policy/pdpx/main/rest/XacmlPdpApplicationManagerTest.java