aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/resources
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/resources')
-rw-r--r--src/test/resources/json/dynamicIndex.json28
-rw-r--r--src/test/resources/json/search_policy.json30
2 files changed, 43 insertions, 15 deletions
diff --git a/src/test/resources/json/dynamicIndex.json b/src/test/resources/json/dynamicIndex.json
index 1ac1cce..5df4069 100644
--- a/src/test/resources/json/dynamicIndex.json
+++ b/src/test/resources/json/dynamicIndex.json
@@ -1,15 +1,17 @@
{
- "mappings": {
- "dynamic_templates": [{
- "strings": {
- "match_mapping_type": "string",
- "match": "*",
- "mapping": {
- "type": "string",
- "index": "not_analyzed"
- }
- }
- }
- ]
- }
+ "mappings": {
+ "dynamic_templates": [{
+ "strings": {
+ "match_mapping_type": "string",
+ "match": "*",
+ "mapping": {
+ "type": "string",
+ "index": "not_analyzed"
+ }
+ }
+ }
+ ]
+ }
+
+
} \ No newline at end of file
diff --git a/src/test/resources/json/search_policy.json b/src/test/resources/json/search_policy.json
index ab8d0e3..63c6785 100644
--- a/src/test/resources/json/search_policy.json
+++ b/src/test/resources/json/search_policy.json
@@ -1,5 +1,6 @@
{
- "roles": [{
+ "roles": [
+ {
"name": "testRole",
"functions": [{
"name": "testFunction",
@@ -16,8 +17,33 @@
"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",