Add missing auth headers to guard request 45/15745/5
authorTemoc Rodriguez <cr056n@att.com>
Tue, 26 Sep 2017 23:03:34 +0000 (16:03 -0700)
committerTemoc Rodriguez <cr056n@att.com>
Thu, 28 Sep 2017 15:09:26 +0000 (08:09 -0700)
commit1f651c480d4dd3922e1c05461f7d901c47293c4a
treeb2437d524457d38f3d6ae40ed9194b1ece5547b9
parent060a99c988e622e7c8010bf8519aafbc0cdd6c81
Add missing auth headers to guard request

Added guard authentication, client authentication, and environment http
headers to the pdp-x guard restful request. Properties are set to
PolicyEngine.manager. Property getter, setter, and properties in
guard/.../Util.java. Test properties defined in junits themselves. Added
code from GuardContext.java to grab the properties and make restful request.
PolicyGuardXacmlHelper now closely resembles GuardContext in order to mimic
functionality. Guard url no longer is passed into CallGuardTask, it is now
a property.

Issue-ID: POLICY-260
Change-Id: I5b144764828b6da0e7b738a578e4f6596a0f4f36
Signed-off-by: Temoc Rodriguez <cr056n@att.com>
controlloop/common/guard/src/main/java/org/onap/policy/guard/CallGuardTask.java
controlloop/common/guard/src/main/java/org/onap/policy/guard/PolicyGuardXacmlHelper.java
controlloop/common/guard/src/main/java/org/onap/policy/guard/Util.java
controlloop/common/simulators/pom.xml
controlloop/common/simulators/src/test/java/org/onap/policy/simulators/GuardSimulatorTest.java
controlloop/templates/archetype-cl-amsterdam/src/main/resources/archetype-resources/src/main/resources/__closedLoopControlName__.drl
controlloop/templates/template.demo/src/main/resources/ControlLoop_Template_xacml_guard.drl
controlloop/templates/template.demo/src/test/java/org/onap/policy/template/demo/ControlLoopXacmlGuardTest.java
controlloop/templates/template.demo/src/test/java/org/onap/policy/template/demo/Util.java