aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/resources/json
diff options
context:
space:
mode:
authorLee, Tian (tl5884) <TianL@amdocs.com>2019-03-01 16:03:03 +0000
committerLee, Tian (tl5884) <TianL@amdocs.com>2019-03-01 16:03:03 +0000
commite07d5b8dc0801583518b4f27ce6b8f3b56bcf206 (patch)
tree66fa70a6f5a1fbeb069723b3d9df07759d58d7c8 /src/test/resources/json
parent5ea47abeeb1713b56006fd69b1564cbd4c4220c7 (diff)
Add elasticsearch with searchguard Dockerfile
Add Dockerfile that produces an image of ElasticSearch with SearchGuard plugin pre-installed, and restructure the Maven project to build both the old search-data-service Dockerfile and the new elasticsearch-sg Dockerfile. Change-Id: Iff7cb79e3c09da78b6233422f40cb03eeef5bfdb Issue-ID: AAI-2203 Signed-off-by: Lee, Tian (tl5884) <TianL@amdocs.com>
Diffstat (limited to 'src/test/resources/json')
-rw-r--r--src/test/resources/json/analysis-config.json21
-rw-r--r--src/test/resources/json/bulk-ops-invalid.json32
-rw-r--r--src/test/resources/json/bulk-ops-valid.json31
-rw-r--r--src/test/resources/json/dynamic-custom-template.json12
-rw-r--r--src/test/resources/json/dynamicIndex.json17
-rw-r--r--src/test/resources/json/es-payload-translation.json16
-rw-r--r--src/test/resources/json/filter-config.json7
-rw-r--r--src/test/resources/json/index-mapping.json28
-rw-r--r--src/test/resources/json/nested-document.json49
-rw-r--r--src/test/resources/json/queries/query-with-subrange.json14
-rw-r--r--src/test/resources/json/queries/simple-parsed-query.json10
-rw-r--r--src/test/resources/json/search_policy.json63
-rw-r--r--src/test/resources/json/settings-config.json9
-rw-r--r--src/test/resources/json/simpleDocument.json17
-rw-r--r--src/test/resources/json/tier-support-document.json30
15 files changed, 0 insertions, 356 deletions
diff --git a/src/test/resources/json/analysis-config.json b/src/test/resources/json/analysis-config.json
deleted file mode 100644
index a622dcf..0000000
--- a/src/test/resources/json/analysis-config.json
+++ /dev/null
@@ -1,21 +0,0 @@
-[
- {
- "name": "nGram_analyzer",
- "description": "NGram Analyzer",
- "tokenizer": "whitespace",
- "filters": [
- "lowercase",
- "asciifolding",
- "nGram_filter"
- ]
- },
- {
- "name": "whitespace_analyzer",
- "description": "Whitespace Analyzer",
- "tokenizer": "whitespace",
- "filters": [
- "lowercase",
- "asciifolding"
- ]
- }
-] \ No newline at end of file
diff --git a/src/test/resources/json/bulk-ops-invalid.json b/src/test/resources/json/bulk-ops-invalid.json
deleted file mode 100644
index 4708498..0000000
--- a/src/test/resources/json/bulk-ops-invalid.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "operations": [
- {
- "operation": "create",
- "meta-data": {
- "index": "test-index"
- },
- "document": {
- "field1": "value1",
- "field2": "value2"
- }
- },
- {
- "operation": "dance!",
- "meta-data": {
- "index": "test-index",
- "id": "2",
- "version": "5"
- },
- "document": {
- "field1": "new-value"
- }
- },
- {
- "operation": "delete",
- "meta-data": {
- "index": "test-index",
- "id": "4"
- }
- }
- ]
-} \ No newline at end of file
diff --git a/src/test/resources/json/bulk-ops-valid.json b/src/test/resources/json/bulk-ops-valid.json
deleted file mode 100644
index 6e805cf..0000000
--- a/src/test/resources/json/bulk-ops-valid.json
+++ /dev/null
@@ -1,31 +0,0 @@
-[
- {
- "create": {
- "metaData": {
- "url": "/indexes/test-index/documents/"
- },
- "document": {
- "field1": "value1",
- "field2": "value2"
- }
- }
- },
- {
- "update": {
- "metaData": {
- "url": "/indexes/test-index/documents/3",
- "etag": "5"
- },
- "document": {
- "field1": "new-value"
- }
- }
- },
- {
- "delete": {
- "metaData": {
- "url": "/indexes/test-index/documents/7"
- }
- }
- }
-]
diff --git a/src/test/resources/json/dynamic-custom-template.json b/src/test/resources/json/dynamic-custom-template.json
deleted file mode 100644
index a7bd5ae..0000000
--- a/src/test/resources/json/dynamic-custom-template.json
+++ /dev/null
@@ -1,12 +0,0 @@
-"dynamic_templates":[
- {
- "strings":{
- "match_mapping_type":"string",
- "match": "*",
- "mapping":{
- "type":"text",
- "fielddata":true
- }
- }
- }
-], \ No newline at end of file
diff --git a/src/test/resources/json/dynamicIndex.json b/src/test/resources/json/dynamicIndex.json
deleted file mode 100644
index 5df4069..0000000
--- a/src/test/resources/json/dynamicIndex.json
+++ /dev/null
@@ -1,17 +0,0 @@
-{
- "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/es-payload-translation.json b/src/test/resources/json/es-payload-translation.json
deleted file mode 100644
index 58ed8f6..0000000
--- a/src/test/resources/json/es-payload-translation.json
+++ /dev/null
@@ -1,16 +0,0 @@
-{
- "attr-translations": [
- {
- "query": "$..[?(@.type=='string' && @.index=='analyzed')]",
- "update": {"type": "text", "index": true, "fielddata": true}
- },
- {
- "query": "$..[?(@.type=='string' && @.index=='not_analyzed')]",
- "update": {"type": "keyword", "index": true}
- },
- {
- "query": "$..[?(@.type=='string' && !@.index)]",
- "update": {"type": "text", "fielddata": true}
- }
- ]
-} \ No newline at end of file
diff --git a/src/test/resources/json/filter-config.json b/src/test/resources/json/filter-config.json
deleted file mode 100644
index d1de1d7..0000000
--- a/src/test/resources/json/filter-config.json
+++ /dev/null
@@ -1,7 +0,0 @@
-[
- {
- "name": "nGram_filter",
- "description": "Custom NGram Filter.",
- "configuration": " \"type\": \"nGram\", \"min_gram\": 1, \"max_gram\": 50, \"token_chars\": [ \"letter\", \"digit\", \"punctuation\", \"symbol\" ]"
- }
-] \ No newline at end of file
diff --git a/src/test/resources/json/index-mapping.json b/src/test/resources/json/index-mapping.json
deleted file mode 100644
index e447092..0000000
--- a/src/test/resources/json/index-mapping.json
+++ /dev/null
@@ -1,28 +0,0 @@
-{
- "fields": [
- {"name": "validationId", "type": "string", "searchable": false},
- {"name": "validationTimestamp1", "type": "date", "format": "MMM d y HH:m:s||dd-MM-yyyy HH:mm:ss||yyyy-MM-dd'T'HH:mm:ss.SSSZZ||MM\/dd\/yyyy||yyyyMMdd'T'HHmmssZ"},
- {"name": "entityId", "type": "nested"},
- {"name": "entityType", "type": "string", "index": "analyzed"},
- {"name": "entityLink", "type": "string"},
-
- {"name": "resourceVersion", "type": "string", "index": "not_analyzed"},
- {"name": "violations", "type": "nested", "sub-fields": [
- {"name": "violationId", "type": "string"},
- {"name": "violationTimestamp", "type": "date", "format": "MMM d y HH:m:s||dd-MM-yyyy HH:mm:ss||yyyy-MM-dd'T'HH:mm:ss.SSSZZ||MM\/dd\/yyyy||yyyyMMdd'T'HHmmssZ"},
- {"name": "modelName", "type": "string"},
- {"name": "category", "type": "string"},
- {"name": "severity", "type": "string"},
- {"name": "violationType", "type": "string"},
- {"name": "validationRule", "type": "string"},
- {"name": "violationDetails", "type": "nested", "sub-fields": [
- {"name": "entityId", "type": "nested"},
- {"name": "entityType", "type": "string"},
- {"name": "modelName", "type": "string"},
- {"name": "MISSING_REL", "type": "string"}
- ]},
- {"name": "errorMessage", "type": "string", "errMsg": "Sample error message for whitespace check"}
- ]}
- ]
-
-}
diff --git a/src/test/resources/json/nested-document.json b/src/test/resources/json/nested-document.json
deleted file mode 100644
index 8373a6d..0000000
--- a/src/test/resources/json/nested-document.json
+++ /dev/null
@@ -1,49 +0,0 @@
-{
- "fields": [
- {
- "name": "serverName",
- "data-type": "string",
- "searchable": true,
- "search-analyzer": "whitespace",
- "sub-fields": []
- },
- {
- "name": "serverComplex",
- "data-type": "string",
- "search-analyzer": "whitespace",
- "sub-fields": []
- },
- {
- "name": "address",
- "data-type": "nested",
- "sub-fields": [
- {
- "name": "street",
- "data-type": "string",
- "sub-fields": []
- },
- {
- "name": "city",
- "data-type": "string",
- "sub-fields": []
- },
- {
- "name": "phone-numbers",
- "data-type": "nested",
- "sub-fields": [
- {
- "name": "home",
- "data-type": "string",
- "sub-fields": []
- },
- {
- "name": "cell",
- "data-type": "string",
- "sub-fields": []
- }
- ]
- }
- ]
- }
- ]
-}
diff --git a/src/test/resources/json/queries/query-with-subrange.json b/src/test/resources/json/queries/query-with-subrange.json
deleted file mode 100644
index 36e5f15..0000000
--- a/src/test/resources/json/queries/query-with-subrange.json
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "results-start": 0,
- "results-size": 10,
- "queries": [
- {
- "must": {
- "match": {
- "field": "field1",
- "value": "Bob"
- }
- }
- }
- ]
-} \ No newline at end of file
diff --git a/src/test/resources/json/queries/simple-parsed-query.json b/src/test/resources/json/queries/simple-parsed-query.json
deleted file mode 100644
index 50ce681..0000000
--- a/src/test/resources/json/queries/simple-parsed-query.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "queries": [
- {
- "parsed-query": {
- "field": "searchTags",
- "query-string": "a"
- }
- }
- ]
-} \ No newline at end of file
diff --git a/src/test/resources/json/search_policy.json b/src/test/resources/json/search_policy.json
deleted file mode 100644
index 63c6785..0000000
--- a/src/test/resources/json/search_policy.json
+++ /dev/null
@@ -1,63 +0,0 @@
-{
- "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
diff --git a/src/test/resources/json/settings-config.json b/src/test/resources/json/settings-config.json
deleted file mode 100644
index 5ebdbcc..0000000
--- a/src/test/resources/json/settings-config.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "number_of_shards": "5",
- "replication": "TLV_DATACENTER:2",
- "drop_on_delete_index": true,
- "version": {
- "created": "6020399"
- }
-}
-
diff --git a/src/test/resources/json/simpleDocument.json b/src/test/resources/json/simpleDocument.json
deleted file mode 100644
index c21c574..0000000
--- a/src/test/resources/json/simpleDocument.json
+++ /dev/null
@@ -1,17 +0,0 @@
-{
- "fields": [
- {
- "name": "serverName",
- "data-type": "string",
- "searchable": true,
- "search-analyzer": "whitespace",
- "sub-fields": []
- },
- {
- "name": "serverComplex",
- "data-type": "string",
- "search-analyzer": "whitespace",
- "sub-fields": []
- }
- ]
-}
diff --git a/src/test/resources/json/tier-support-document.json b/src/test/resources/json/tier-support-document.json
deleted file mode 100644
index c6a20db..0000000
--- a/src/test/resources/json/tier-support-document.json
+++ /dev/null
@@ -1,30 +0,0 @@
-{
- "document-type": "tier-support",
- "document-id": "ts-1",
- "fields": [
- {
- "name": "entityType",
- "data-type": "string"
- },
- {
- "name": "edgeTagQueryEntityFieldName",
- "data-type": "string",
- "index": false
- },
- {
- "name": "edgeTagQueryEntityFieldValue",
- "data-type": "string",
- "index": false
- },
- {
- "name": "searchTagIDs",
- "data-type": "string"
- },
- {
- "name": "searchTags",
- "data-type": "string",
- "index-analyzer": "nGram_analyzer",
- "search-analyzer": "whitespace_analyzer"
- }
- ]
-} \ No newline at end of file