More examples of optimization policies and cleanup 87/97887/7
authorPamela Dragosh <pdragosh@research.att.com>
Sun, 3 Nov 2019 22:42:09 +0000 (17:42 -0500)
committerPamela Dragosh <pdragosh@research.att.com>
Mon, 4 Nov 2019 13:45:32 +0000 (08:45 -0500)
commit1bedb591cc68c10c7db916fda8a3f02d67c2314d
tree42984cf2c3668f95cf84b721e80d0ed91d79a7e7
parent3c1ae81a9c05ee9bfbb76bb23a2d2d75013d37ae
More examples of optimization policies and cleanup

Fixed a couple of sonar issues - log exception and do not
nest more 3 if-else-try.

Cleaned up the JUnit test to make debugging a bit easier.

Added more examples for testing optimization tests.

Moved the target back into the Policy and kept the Condition
on the Rule. Works exactly the same, just a bit cleaner and
one less rule to deal with.

Issue-ID: POLICY-2066
Change-Id: Ife28dc2ce959dcf1fb8ca72061ebc5dca862a7f4
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
applications/common/src/main/java/org/onap/policy/pdp/xacml/application/common/std/StdMatchableTranslator.java
applications/optimization/src/test/java/org/onap/policy/xacml/pdp/application/optimization/OptimizationPdpApplicationTest.java
applications/optimization/src/test/resources/vCPE.policies.optimization.input.tosca.yaml
xacml-test/src/main/java/org/onap/policy/pdp/xacml/xacmltest/TestUtils.java