aboutsummaryrefslogtreecommitdiff
path: root/benchmarks/authzforce-harness.bash
diff options
context:
space:
mode:
authorJakob L. Kreuze2023-12-21 13:20:58 -0500
committerJakob L. Kreuze2023-12-21 13:20:58 -0500
commitbe7067d632aa665c20f96d3b344a84c95b0f8ff8 (patch)
treefc5564a72cc42c8a21d3e943f645afcaae78f5a5 /benchmarks/authzforce-harness.bash
parent5918f84a1a05881d93d9fab83104feca9981bfaa (diff)
Check-in remaining files
Diffstat (limited to 'benchmarks/authzforce-harness.bash')
-rw-r--r--benchmarks/authzforce-harness.bash23
1 files changed, 23 insertions, 0 deletions
diff --git a/benchmarks/authzforce-harness.bash b/benchmarks/authzforce-harness.bash
new file mode 100644
index 0000000..f339446
--- /dev/null
+++ b/benchmarks/authzforce-harness.bash
@@ -0,0 +1,23 @@
+#!/usr/bin/env bash
+
+NAME="$(basename $1)"
+if [ $NAME = "IIA001" ]; then
+ NAME="IIA1"
+fi
+
+cat > /tmp/pdp.xml <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<pdp xmlns="http://authzforce.github.io/core/xmlns/pdp/8"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ version="8.0">
+ <policyProvider id="rootPolicyProvider" xsi:type="StaticPolicyProvider">
+ <policyLocation>$1/Policy.xml</policyLocation>
+ </policyProvider>
+ <rootPolicyRef>urn:oasis:names:tc:xacml:2.0:conformance-test:$NAME:policy</rootPolicyRef>
+ <ioProcChain>
+ <requestPreproc>urn:ow2:authzforce:feature:pdp:request-preproc:xacml-json:default-lax</requestPreproc>
+ <resultPostproc>urn:ow2:authzforce:feature:pdp:result-postproc:xacml-json:default</resultPostproc>
+ </ioProcChain>
+</pdp>
+EOF
+java -jar /tmp/authzforce-ce-core-pdp-cli-21.0.1.jar /tmp/pdp.xml $1/Request.xml

© 2015 - 2026 Jakob L. Kreuze