aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/resources
diff options
context:
space:
mode:
authormark.j.leonard <mark.j.leonard@gmail.com>2019-03-11 17:50:07 +0000
committermark.j.leonard <mark.j.leonard@gmail.com>2019-03-11 17:50:07 +0000
commit13494d99a913817342da23ffc58029bdc4203814 (patch)
tree2e122991625666bc756d3abb981e34701a2d0ca3 /src/test/resources
parentbe689ed12e6f35dd98606cb5561433c1275d44a8 (diff)
Refactor auth classes and add tests
Add new tests to give better coverage of the authorization classes. Refactor the core class for readability. Change-Id: I2be467d8f4492249a0c29be8b108bb2bce2818dd Issue-ID: AAI-2229 Signed-off-by: mark.j.leonard <mark.j.leonard@gmail.com>
Diffstat (limited to 'src/test/resources')
-rw-r--r--src/test/resources/appconfig/auth/auth_policy.json12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/resources/appconfig/auth/auth_policy.json b/src/test/resources/appconfig/auth/auth_policy.json
new file mode 100644
index 0000000..dc966e0
--- /dev/null
+++ b/src/test/resources/appconfig/auth/auth_policy.json
@@ -0,0 +1,12 @@
+{"roles": [
+ {
+ "name": "nofuncauth",
+ "functions": [{
+ "name": "nofuncutil"
+ }],
+ "users": [{
+ "user": "aai",
+ "pass": "OBF:1u2a1t2v1vgb1s3g1s3m1vgj1t3b1u30"
+ }]
+ }
+]}