From b2b8f46ab3a524eae487fa932d9ceb2b884a68f5 Mon Sep 17 00:00:00 2001 From: Charles Cole Date: Thu, 21 Sep 2017 14:20:42 -0500 Subject: 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 --- .../src/main/java/org/onap/policy/guard/PolicyGuardXacmlHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'controlloop/common/guard/src/main/java') diff --git a/controlloop/common/guard/src/main/java/org/onap/policy/guard/PolicyGuardXacmlHelper.java b/controlloop/common/guard/src/main/java/org/onap/policy/guard/PolicyGuardXacmlHelper.java index 72c498d0e..826f05652 100644 --- a/controlloop/common/guard/src/main/java/org/onap/policy/guard/PolicyGuardXacmlHelper.java +++ b/controlloop/common/guard/src/main/java/org/onap/policy/guard/PolicyGuardXacmlHelper.java @@ -179,7 +179,7 @@ public class PolicyGuardXacmlHelper { } catch (Exception e) { logger.error("Exception in 'PolicyGuardXacmlHelper.callRESTfulPDP'", e); } - + rawDecision = new JSONObject(response).getString("decision"); return rawDecision; -- cgit 1.2.3-korg