diff options
author | Jim Hahn <jrh3@att.com> | 2021-07-21 13:50:44 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2021-07-21 13:50:44 +0000 |
commit | f01fce93c17db824d772240b9c68c07d15c6869a (patch) | |
tree | 62db091689fefce9b812efaf0b23d01417ec69fd /applications/optimization/src | |
parent | 527c3c8542dfc4d0078213441529ec68eec1372e (diff) | |
parent | 24446884306a87a1d22fb8d0b28efbf41201a87c (diff) |
Merge "Include returned attributes in Decision"
Diffstat (limited to 'applications/optimization/src')
-rw-r--r-- | applications/optimization/src/test/java/org/onap/policy/xacml/pdp/application/optimization/OptimizationPdpApplicationTest.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/applications/optimization/src/test/java/org/onap/policy/xacml/pdp/application/optimization/OptimizationPdpApplicationTest.java b/applications/optimization/src/test/java/org/onap/policy/xacml/pdp/application/optimization/OptimizationPdpApplicationTest.java index 674169e8..9c922941 100644 --- a/applications/optimization/src/test/java/org/onap/policy/xacml/pdp/application/optimization/OptimizationPdpApplicationTest.java +++ b/applications/optimization/src/test/java/org/onap/policy/xacml/pdp/application/optimization/OptimizationPdpApplicationTest.java @@ -202,6 +202,13 @@ public class OptimizationPdpApplicationTest { assertThat(decision.getKey()).isNotNull(); assertThat(decision.getKey().getPolicies()).isEmpty(); + // + // Optimization applications should not have this information returned. Except advice + // for subscriber details, which does get checked in the tests following. + // + assertThat(decision.getKey().getAdvice()).isNull(); + assertThat(decision.getKey().getObligations()).isNull(); + assertThat(decision.getKey().getAttributes()).isNull(); } /** @@ -424,6 +431,11 @@ public class OptimizationPdpApplicationTest { assertThat(response).isNotNull(); assertThat(response.getPolicies()).hasSize(expectedPolicyCount); // + // Optimization applications should not have this information returned + // + assertThat(response.getObligations()).isNull(); + assertThat(response.getAttributes()).isNull(); + // // Validate it // validateDecision(response, baseRequest); |