aboutsummaryrefslogtreecommitdiffstats
path: root/applications/guard/src/test/java
diff options
context:
space:
mode:
authorPamela Dragosh <pdragosh@research.att.com>2019-04-13 11:42:55 -0400
committerPamela Dragosh <pdragosh@research.att.com>2019-04-15 07:59:36 -0400
commitf0fd32d9eafb3252f31807b1c999ca949a2f5ad3 (patch)
tree6b7b64f93145ae1bd36f4d198b4b20cb50db0e0b /applications/guard/src/test/java
parent70736cfbf6ad1a068f8ee53adddd4faa3b6fa8a8 (diff)
Fix incorrect policy with time-in-range
Changed policies to use Z vs -05:00 for timezone since we cannot guarantee the timezone the VM's run in. The test should be generalized. Fixed a sonar issue in the test I was using to debug this. Issue-ID: POLICY-1639 Change-Id: If3e52d199527a8a7e11c5fa994beb8fb886c93a6 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
Diffstat (limited to 'applications/guard/src/test/java')
-rw-r--r--applications/guard/src/test/java/org/onap/policy/xacml/pdp/application/guard/GuardPdpApplicationTest.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/applications/guard/src/test/java/org/onap/policy/xacml/pdp/application/guard/GuardPdpApplicationTest.java b/applications/guard/src/test/java/org/onap/policy/xacml/pdp/application/guard/GuardPdpApplicationTest.java
index 7f5a1cef..c4ae5ddb 100644
--- a/applications/guard/src/test/java/org/onap/policy/xacml/pdp/application/guard/GuardPdpApplicationTest.java
+++ b/applications/guard/src/test/java/org/onap/policy/xacml/pdp/application/guard/GuardPdpApplicationTest.java
@@ -360,6 +360,7 @@ public class GuardPdpApplicationTest {
assertThat(decision.getKey().getStatus()).isEqualTo("Deny");
}
+ @SuppressWarnings("unchecked")
@Test
public void test6Blacklist() throws CoderException, XacmlApplicationException {
LOGGER.info("**************** Running test4 ****************");