-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
Signed-off-by: Thomas Farr <tsfarr@amazon.com>
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
ARG OPENSEARCH_DOCKER_HUB_PROJECT | ||
ARG OPENSEARCH_VERSION | ||
ARG OPENSEARCH_DOCKER_REF | ||
|
||
FROM ${OPENSEARCH_DOCKER_HUB_PROJECT}/opensearch:${OPENSEARCH_VERSION}${OPENSEARCH_DOCKER_REF} | ||
Check failure on line 5 in tests/plugins/analysis-icu/Dockerfile GitHub Actions / check
|
||
RUN ./bin/opensearch-plugin install -b analysis-icu | ||
Check failure on line 6 in tests/plugins/analysis-icu/Dockerfile GitHub Actions / check
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
version: '3' | ||
|
||
services: | ||
opensearch-cluster: | ||
build: | ||
context: . | ||
args: | ||
- OPENSEARCH_DOCKER_HUB_PROJECT=${OPENSEARCH_DOCKER_HUB_PROJECT:-opensearchproject} | ||
- OPENSEARCH_DOCKER_REF=${OPENSEARCH_DOCKER_REF} | ||
- OPENSEARCH_VERSION=${OPENSEARCH_VERSION:-latest} | ||
ports: | ||
- 9200:9200 | ||
- 9600:9600 | ||
environment: | ||
- OPENSEARCH_INITIAL_ADMIN_PASSWORD=${OPENSEARCH_PASSWORD:-myStrongPassword123!} | ||
- OPENSEARCH_JAVA_OPTS=${OPENSEARCH_JAVA_OPTS} | ||
- discovery.type=single-node |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
$schema: ../../../../../json_schemas/test_story.schema.yaml | ||
|
||
description: Test mappings endpoints. | ||
warnings: | ||
multiple-paths-detected: false | ||
prologues: [] | ||
epilogues: | ||
- path: /collated | ||
method: DELETE | ||
status: [200, 404] | ||
chapters: | ||
- synopsis: Create an index with a mapping that uses ICU collation. | ||
path: /{index} | ||
method: PUT | ||
parameters: | ||
index: collated | ||
request: | ||
payload: | ||
mappings: | ||
properties: | ||
phrase: | ||
type: icu_collation_keyword | ||
language: tr | ||
strength: primary | ||
|
||
- synopsis: Get mappings for index. | ||
path: /{index}/_mapping | ||
method: GET | ||
parameters: | ||
index: collated | ||
response: | ||
status: 200 | ||
payload: | ||
collated: | ||
mappings: | ||
properties: | ||
phrase: | ||
type: icu_collation_keyword | ||
language: tr | ||
strength: primary | ||
|
||
- synopsis: Index values with ICU collation. | ||
path: /{index}/_bulk | ||
method: POST | ||
parameters: | ||
index: collated | ||
refresh: wait_for | ||
request: | ||
content_type: application/x-ndjson | ||
payload: | ||
- { create: { _id: '1' } } | ||
Check failure on line 51 in tests/plugins/analysis-icu/indices/mapping/icu_collation_keyword.yaml GitHub Actions / lint
Check failure on line 51 in tests/plugins/analysis-icu/indices/mapping/icu_collation_keyword.yaml GitHub Actions / lint
Check failure on line 51 in tests/plugins/analysis-icu/indices/mapping/icu_collation_keyword.yaml GitHub Actions / lint
|
||
- { phrase: 'I WİLL USE TURKİSH CASING' } | ||
Check failure on line 52 in tests/plugins/analysis-icu/indices/mapping/icu_collation_keyword.yaml GitHub Actions / lint
Check failure on line 52 in tests/plugins/analysis-icu/indices/mapping/icu_collation_keyword.yaml GitHub Actions / lint
Check failure on line 52 in tests/plugins/analysis-icu/indices/mapping/icu_collation_keyword.yaml GitHub Actions / lint
Check failure on line 52 in tests/plugins/analysis-icu/indices/mapping/icu_collation_keyword.yaml GitHub Actions / lint
|
||
- { create: { _id: '2' } } | ||
- { phrase: 'ı will use turkish casıng' } | ||
|
||
- synopsis: Search for values with ICU collation. | ||
path: /{index}/_search | ||
method: POST | ||
parameters: | ||
index: collated | ||
request: | ||
payload: | ||
query: | ||
term: | ||
phrase: 'I WİLL USE TURKİSH CASING' | ||
sort: | ||
- phrase | ||
- { _id: desc } | ||
response: | ||
status: 200 | ||
payload: | ||
hits: | ||
total: | ||
value: 2 | ||
hits: | ||
- _id: '2' | ||
_source: | ||
phrase: 'ı will use turkish casıng' | ||
- _id: '1' | ||
_source: | ||
phrase: 'I WİLL USE TURKİSH CASING' |