From ad9d827a43211c087fe4bcf575134aea3a5b316e Mon Sep 17 00:00:00 2001 From: Pamela Dragosh Date: Mon, 17 Aug 2020 16:45:30 -0400 Subject: 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 --- .../onap/policy/pdpx/main/rest/XacmlPdpApplicationManagerTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main/src/test') diff --git a/main/src/test/java/org/onap/policy/pdpx/main/rest/XacmlPdpApplicationManagerTest.java b/main/src/test/java/org/onap/policy/pdpx/main/rest/XacmlPdpApplicationManagerTest.java index 2a85579c..cd7041ed 100644 --- a/main/src/test/java/org/onap/policy/pdpx/main/rest/XacmlPdpApplicationManagerTest.java +++ b/main/src/test/java/org/onap/policy/pdpx/main/rest/XacmlPdpApplicationManagerTest.java @@ -142,10 +142,10 @@ public class XacmlPdpApplicationManagerTest { // assertThat(manager).isNotNull(); assertThat(manager.getPolicyCount()).isZero(); - assertThat(manager.getPolicyTypeCount()).isEqualTo(19); + assertThat(manager.getPolicyTypeCount()).isEqualTo(20); assertThat(manager.getToscaPolicies()).isEmpty(); assertThat(manager.getToscaPolicyIdentifiers()).isEmpty(); - assertThat(manager.getToscaPolicyTypeIdents()).hasSize(19); + assertThat(manager.getToscaPolicyTypeIdents()).hasSize(20); assertThat(manager.findNativeApplication()).isInstanceOf(NativePdpApplication.class); -- cgit 1.2.3-korg