Utilize time extensions 02/118002/5
authorPamela Dragosh <pdragosh@research.att.com>
Wed, 17 Feb 2021 21:48:01 +0000 (15:48 -0600)
committerPamela Dragosh <pdragosh@research.att.com>
Thu, 18 Feb 2021 16:28:38 +0000 (10:28 -0600)
commit5920c029d3818a22f591c6aa1ffff4e34b6df234
treeefaec005974d050c78a48b13a34d4e8916098a77
parent8cea7022f62f1dba805564acd3f71525cdf95e23
Utilize time extensions

Switched to using the new Time Extensions released in XACML
from github v3.0. Added more thorough tests for it as well as
the flexibility of specifying the current time etc.

More syntax checking on the inputs from the policy.

Issue-ID: POLICY-2810
Change-Id: I1b4ec885c706e37949e5dabe14c63b0d7456cd4f
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
applications/common/src/main/java/org/onap/policy/pdp/xacml/application/common/ToscaPolicyTranslatorUtils.java
applications/common/src/test/java/org/onap/policy/pdp/xacml/application/common/ToscaPolicyTranslatorUtilsTest.java
applications/guard/src/main/java/org/onap/policy/xacml/pdp/application/guard/GuardPolicyRequest.java
applications/guard/src/main/java/org/onap/policy/xacml/pdp/application/guard/GuardTranslator.java
applications/guard/src/test/java/org/onap/policy/xacml/pdp/application/guard/GuardPdpApplicationTest.java
applications/guard/src/test/java/org/onap/policy/xacml/pdp/application/guard/GuardTranslatorTest.java
applications/guard/src/test/resources/requests/guard.timeinrange.json [new file with mode: 0644]
applications/guard/src/test/resources/test-bad-policies.yaml
applications/guard/src/test/resources/test-policies.yaml
applications/guard/src/test/resources/test-time-in-range.yaml [new file with mode: 0644]