summaryrefslogtreecommitdiffstats
path: root/controlloop/common/guard/src/main
diff options
context:
space:
mode:
authorCharles Cole <cc847m@att.com>2017-09-21 14:20:42 -0500
committerCharles Cole <cc847m@att.com>2017-09-21 16:50:41 -0500
commitb2b8f46ab3a524eae487fa932d9ceb2b884a68f5 (patch)
tree97715d1f7384f247ccfdd3477efa24e4c307274f /controlloop/common/guard/src/main
parent77bfe0936956111cce88044c58b6ff96045dee9d (diff)
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>
Diffstat (limited to 'controlloop/common/guard/src/main')
-rw-r--r--controlloop/common/guard/src/main/java/org/onap/policy/guard/PolicyGuardXacmlHelper.java2
1 files changed, 1 insertions, 1 deletions
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;