aboutsummaryrefslogtreecommitdiffstats
path: root/search-data-service-app/src/test/resources/json/search_policy.json
diff options
context:
space:
mode:
Diffstat (limited to 'search-data-service-app/src/test/resources/json/search_policy.json')
-rw-r--r--search-data-service-app/src/test/resources/json/search_policy.json63
1 files changed, 63 insertions, 0 deletions
diff --git a/search-data-service-app/src/test/resources/json/search_policy.json b/search-data-service-app/src/test/resources/json/search_policy.json
new file mode 100644
index 0000000..b1abe3c
--- /dev/null
+++ b/search-data-service-app/src/test/resources/json/search_policy.json
@@ -0,0 +1,63 @@
+{
+ "roles": [
+ {
+ "name": "testRole",
+ "functions": [{
+ "name": "testFunction",
+ "methods": [{
+ "name": "GET"
+ }, {
+ "name": "DELETE"
+ }, {
+ "name": "PUT"
+ }
+ ]
+ }
+ ],
+ "users": [{
+ "username": "testUser"
+ }
+
+ ]
+ },
+
+ {
+ "name": "devRole",
+ "functions": [{
+ "name": "search",
+ "methods": [{
+ "name": "GET"
+ }, {
+ "name": "DELETE"
+ }, {
+ "name": "PUT"
+ }
+ ]
+ }
+ ],
+ "users": [
+ {
+ "username": "cn=onap, ou=onap, o=onap, l=ottawa, st=ontario, c=ca"
+ }
+
+ ]
+ },
+
+ {
+ "name": "testBasicAuth",
+ "functions": [{
+ "name": "testBasicAuthFuncyion",
+ "methods": [{
+ "name": "GET"
+ }
+ ]
+ }
+ ],
+ "users": [{
+ "user": "testBasicAuthUser",
+ "pass": "OBF:1ytc1vu91v2p1rxf1mqh1v8s1z0d1msn1san1mqf1z0h1v9u1msl1rvf1v1p1vv11yta"
+ }
+ ]
+ }
+ ]
+} \ No newline at end of file