-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add spec for opensearch phone plugin. #610
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -102,6 +102,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) | |||||
- Added `404` response for `DELETE /{index}`, `GET /{index}/_doc/{id}`, `DELETE /{index}/_doc/{id}` ([#589](https://github.com/opensearch-project/opensearch-api-specification/pull/589)) | ||||||
- Added ability to pass `InlineScript` as a simple string ([#605](https://github.com/opensearch-project/opensearch-api-specification/pull/605)) | ||||||
- Added `config_id` and `config_id_list` to `/_plugins/_notifications/configs` query parameters ([#594](https://github.com/opensearch-project/opensearch-api-specification/pull/594)) | ||||||
- Added documentation & test for `analysis-phonenumber` plugin ([#609](https://github.com/opensearch-project/opensearch-api-specification/pull/609)) | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
### Changed | ||||||
|
||||||
|
@@ -176,6 +177,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) | |||||
- Fixed inaccurate numeric type ([#597](https://github.com/opensearch-project/opensearch-api-specification/pull/597))([#598](https://github.com/opensearch-project/opensearch-api-specification/pull/598))([#600](https://github.com/opensearch-project/opensearch-api-specification/pull/600)) | ||||||
- Fixed mapping and analysis types ([#600](https://github.com/opensearch-project/opensearch-api-specification/pull/600)) | ||||||
- Fixed `RestStatus` responses in `DELETE /_plugins/_notifications/configs/{config_id}` ([#594](https://github.com/opensearch-project/opensearch-api-specification/pull/594)) | ||||||
- Fixed `GET /_snapshot_/{repository}/{snapshot}` ([#608](https://github.com/opensearch-project/opensearch-api-specification/pull/608)) | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This seems unrelated, rebase. |
||||||
|
||||||
### Security | ||||||
|
||||||
|
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
ARG OPENSEARCH_DOCKER_HUB_PROJECT | ||
ARG OPENSEARCH_VERSION | ||
ARG OPENSEARCH_DOCKER_REF | ||
|
||
FROM ${OPENSEARCH_DOCKER_HUB_PROJECT}/opensearch:${OPENSEARCH_VERSION}${OPENSEARCH_DOCKER_REF} | ||
|
||
# when updating, get the latest/corresponding stable URL with | ||
# curl -v https://ci.opensearch.org/ci/dbc/distribution-build-opensearch/2.18.0/latest/linux/x64/tar/builds/opensearch/core-plugins/analysis-phonenumber-2.18.0.zip | ||
RUN ./bin/opensearch-plugin install https://ci.opensearch.org/ci/dbc/distribution-build-opensearch/2.18.0/10380/linux/x64/tar/builds/opensearch/core-plugins/analysis-phonenumber-2.18.0.zip | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there a permalink where we can use |
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,36 @@ | ||
$schema: ../../../../../json_schemas/test_story.schema.yaml | ||
|
||
description: Test /{index}/_analyze for the phone and phone-search analyzers. | ||
prologues: | ||
- path: /example-phone | ||
method: PUT | ||
request: | ||
payload: | ||
settings: | ||
index: | ||
analysis: | ||
analyzer: | ||
phone-ch: | ||
type: phone | ||
phone-region: CH | ||
phone-search-ch: | ||
type: phone-search | ||
phone-region: CH | ||
epilogues: | ||
- path: /example-phone | ||
method: DELETE | ||
status: [200, 404] | ||
chapters: | ||
- synopsis: Analyze phone number. | ||
path: /{index}/_analyze | ||
method: POST | ||
parameters: | ||
index: example-phone | ||
request: | ||
payload: | ||
text: +41 60 555 12 34 | ||
response: | ||
status: 200 | ||
payload: | ||
tokens: | ||
- token: 605551234 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
$schema: ../../../json_schemas/test_story.schema.yaml | ||
|
||
description: Test _snapshot/{repository}/snapshot endpoints. | ||
epilogues: | ||
- path: /_snapshot/{repository}/{snapshot} | ||
method: DELETE | ||
status: [200, 404] | ||
parameters: | ||
repository: my-fs-repository | ||
snapshot: my-test-snapshot | ||
- path: /_snapshot/{repository} | ||
method: DELETE | ||
status: [200, 404] | ||
parameters: | ||
repository: my-fs-repository | ||
prologues: | ||
- path: /_snapshot/{repository} | ||
method: PUT | ||
parameters: | ||
repository: my-fs-repository | ||
request: | ||
payload: | ||
type: fs | ||
settings: | ||
location: /tmp/opensearch/repo | ||
chapters: | ||
- synopsis: Get information about a repository. | ||
path: /_snapshot/{repository} | ||
method: GET | ||
parameters: | ||
repository: my-fs-repository | ||
response: | ||
status: 200 | ||
payload: | ||
my-fs-repository: | ||
type: fs | ||
settings: | ||
location: /tmp/opensearch/repo | ||
- synopsis: Create a snapshot. | ||
path: /_snapshot/{repository}/{snapshot} | ||
method: PUT | ||
parameters: | ||
repository: my-fs-repository | ||
snapshot: my-test-snapshot | ||
wait_for_completion: true | ||
request: | ||
payload: | ||
indices: '*' | ||
ignore_unavailable: true | ||
include_global_state: false | ||
partial: true | ||
response: | ||
status: 200 | ||
payload: | ||
snapshot: | ||
snapshot: my-test-snapshot | ||
- synopsis: Get information about a snapshot. | ||
path: /_snapshot/{repository}/{snapshot} | ||
method: GET | ||
parameters: | ||
repository: my-fs-repository | ||
snapshot: my-test-snapshot | ||
response: | ||
status: 200 | ||
payload: | ||
snapshots: | ||
- snapshot: my-test-snapshot | ||
- synopsis: Get information about a snapshot with human-readable parameter. | ||
path: /_snapshot/{repository}/{snapshot} | ||
method: GET | ||
parameters: | ||
repository: my-fs-repository | ||
snapshot: my-test-snapshot | ||
human: true | ||
response: | ||
status: 200 | ||
payload: | ||
snapshots: | ||
- snapshot: my-test-snapshot |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove SHA, this is a released version.