Add guard simulator and multiple AAI responses 71/14371/2
authorCharles Cole <cc847m@att.com>
Thu, 21 Sep 2017 19:20:42 +0000 (14:20 -0500)
committerCharles Cole <cc847m@att.com>
Thu, 21 Sep 2017 21:50:41 +0000 (16:50 -0500)
commitb2b8f46ab3a524eae487fa932d9ceb2b884a68f5
tree97715d1f7384f247ccfdd3477efa24e4c307274f
parent77bfe0936956111cce88044c58b6ff96045dee9d
Add guard simulator and multiple AAI responses

Added a guard simulator that can permit or deny (it sends a deny if the
clname is denyGuard).  Added responses to the AAI simulator to set the
is-closed-loop-disabled to true (use a get query with a key of
disableClosedLoop). Changed the content-type of all responses to
application/json.

Issue-ID: POLICY-256
Change-Id: If84813968d3ea59d9ebe029caa69f444a1f413c8
Signed-off-by: Charles Cole <cc847m@att.com>
controlloop/common/guard/src/main/java/org/onap/policy/guard/PolicyGuardXacmlHelper.java
controlloop/common/simulators/pom.xml
controlloop/common/simulators/src/main/java/org/onap/policy/simulators/AaiSimulatorJaxRs.java
controlloop/common/simulators/src/main/java/org/onap/policy/simulators/GuardSimulatorJaxRs.java [new file with mode: 0644]
controlloop/common/simulators/src/main/java/org/onap/policy/simulators/SoSimulatorJaxRs.java
controlloop/common/simulators/src/main/java/org/onap/policy/simulators/Util.java
controlloop/common/simulators/src/main/java/org/onap/policy/simulators/VfcSimulatorJaxRs.java
controlloop/common/simulators/src/test/java/org/onap/policy/simulators/GuardSimulatorTest.java [new file with mode: 0644]