diff options
author | mmis <michael.morris@ericsson.com> | 2018-09-14 09:00:25 +0100 |
---|---|---|
committer | mmis <michael.morris@ericsson.com> | 2018-09-14 18:31:41 +0100 |
commit | 00b77b9ed6de5779212fecd30b71ebb615f89c3c (patch) | |
tree | 0f87db6033059fefdc7e6b278ab63d4225d1e068 /plugins/forwarding-plugins/src | |
parent | 6d43eadb867277856697778ae53cc21541d21d64 (diff) |
Aligned decoder with forwarder for opt. policies
Changed decoder for optimization policies to generate instance of
OptimizationPolicy (instead of PdpxPolicy) as expected by the forwarder.
Without this change there is a mismatch between the decoder and the
forwarder.
Added parameters for configuring the static elements of the optimization
policies and setting of these elements.
Issue-ID: POLICY-927
Change-Id: Ib91a905dc89eed13622fb88e4dd19b3cb9f62c75
Signed-off-by: mmis <michael.morris@ericsson.com>
Diffstat (limited to 'plugins/forwarding-plugins/src')
-rw-r--r-- | plugins/forwarding-plugins/src/test/java/org/onap/policy/distribution/forwarding/xacml/pdp/engine/XacmlPdpPolicyForwarderTest.java | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/plugins/forwarding-plugins/src/test/java/org/onap/policy/distribution/forwarding/xacml/pdp/engine/XacmlPdpPolicyForwarderTest.java b/plugins/forwarding-plugins/src/test/java/org/onap/policy/distribution/forwarding/xacml/pdp/engine/XacmlPdpPolicyForwarderTest.java index d851b640..9ef88b43 100644 --- a/plugins/forwarding-plugins/src/test/java/org/onap/policy/distribution/forwarding/xacml/pdp/engine/XacmlPdpPolicyForwarderTest.java +++ b/plugins/forwarding-plugins/src/test/java/org/onap/policy/distribution/forwarding/xacml/pdp/engine/XacmlPdpPolicyForwarderTest.java @@ -99,7 +99,6 @@ public class XacmlPdpPolicyForwarderTest { OptimizationPolicy policy1 = new OptimizationPolicy(); policy1.setPolicyName("policy1"); - policy1.setPolicyConfigType("Optimization"); policies.add(policy1); Policy policy2 = new UnsupportedPolicy(); @@ -107,7 +106,6 @@ public class XacmlPdpPolicyForwarderTest { OptimizationPolicy policy3 = new OptimizationPolicy(); policy3.setPolicyName("policy3"); - policy3.setPolicyConfigType("Optimization"); policies.add(policy3); forwarder.forward(policies); @@ -143,7 +141,6 @@ public class XacmlPdpPolicyForwarderTest { Collection<Policy> policies = new ArrayList<>(); OptimizationPolicy policy = new OptimizationPolicy(); policy.setPolicyName("policy"); - policy.setPolicyConfigType("Optimization"); policies.add(policy); forwarder.forward(policies); @@ -172,7 +169,6 @@ public class XacmlPdpPolicyForwarderTest { Collection<Policy> policies = new ArrayList<>(); OptimizationPolicy policy = new OptimizationPolicy(); policy.setPolicyName("policy"); - policy.setPolicyConfigType("Optimization"); policies.add(policy); forwarder.forward(policies); @@ -202,7 +198,6 @@ public class XacmlPdpPolicyForwarderTest { Collection<Policy> policies = new ArrayList<>(); OptimizationPolicy policy = new OptimizationPolicy(); policy.setPolicyName("policy"); - policy.setPolicyConfigType("Optimization"); policies.add(policy); forwarder.forward(policies); @@ -232,7 +227,6 @@ public class XacmlPdpPolicyForwarderTest { Collection<Policy> policies = new ArrayList<>(); OptimizationPolicy policy = new OptimizationPolicy(); policy.setPolicyName("policy"); - policy.setPolicyConfigType("Optimization"); policies.add(policy); forwarder.forward(policies); |