From f889f2f37fe9c00eff5f06b91dabeaefcbf08827 Mon Sep 17 00:00:00 2001 From: HOCKLA Date: Thu, 2 Jan 2020 11:45:22 -0600 Subject: Removed supported policy types from Pdp-Status message Issue-ID: POLICY-2230 Change-Id: I363dc450b6d7aaf13696c50792cbea5a8d643413 Signed-off-by: HOCKLA --- main/src/main/java/org/onap/policy/pdpx/main/XacmlState.java | 1 - main/src/test/java/org/onap/policy/pdpx/main/XacmlStateTest.java | 3 --- 2 files changed, 4 deletions(-) (limited to 'main/src') diff --git a/main/src/main/java/org/onap/policy/pdpx/main/XacmlState.java b/main/src/main/java/org/onap/policy/pdpx/main/XacmlState.java index 77607197..cb88d6aa 100644 --- a/main/src/main/java/org/onap/policy/pdpx/main/XacmlState.java +++ b/main/src/main/java/org/onap/policy/pdpx/main/XacmlState.java @@ -63,7 +63,6 @@ public class XacmlState { this.status.setName(NetworkUtil.getHostname()); this.status.setPdpType("xacml"); this.status.setState(PdpState.PASSIVE); - this.status.setSupportedPolicyTypes(appManager.getToscaPolicyTypeIdents()); this.status.setPolicies(Collections.emptyList()); this.status.setPdpGroup(pdpGroupName); } diff --git a/main/src/test/java/org/onap/policy/pdpx/main/XacmlStateTest.java b/main/src/test/java/org/onap/policy/pdpx/main/XacmlStateTest.java index b09fe1a1..185f538e 100644 --- a/main/src/test/java/org/onap/policy/pdpx/main/XacmlStateTest.java +++ b/main/src/test/java/org/onap/policy/pdpx/main/XacmlStateTest.java @@ -107,9 +107,6 @@ public class XacmlStateTest { assertEquals(GROUP, status.getPdpGroup()); assertEquals(PDP_TYPE, status.getPdpType()); assertEquals(PdpState.PASSIVE, status.getState()); - assertEquals("[ToscaPolicyTypeIdentifier(name=nameA, version=typeA), " - + "ToscaPolicyTypeIdentifier(name=nameB, version=typeB)]", - status.getSupportedPolicyTypes().toString()); assertTrue(status.getPolicies().isEmpty()); // healthy -- cgit 1.2.3-korg