-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added tests for POST /_remotestore/_restore.
Signed-off-by: dblock <[email protected]>
- Loading branch information
Showing
3 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
version: '3' | ||
|
||
services: | ||
opensearch-cluster: | ||
image: ${OPENSEARCH_DOCKER_HUB_PROJECT:-opensearchproject}/opensearch:${OPENSEARCH_VERSION:-latest}${OPENSEARCH_DOCKER_REF} | ||
ports: | ||
- 9200:9200 | ||
- 9600:9600 | ||
environment: | ||
- OPENSEARCH_INITIAL_ADMIN_PASSWORD=${OPENSEARCH_PASSWORD:-myStrongPassword123!} | ||
- OPENSEARCH_JAVA_OPTS=${OPENSEARCH_JAVA_OPTS} | ||
- cluster.remote_store.state.enabled=true | ||
- discovery.type=single-node | ||
- node.attr.remote_store.repository.fs-segment-store.settings.location=/tmp/opensearch/repo/segment | ||
- node.attr.remote_store.repository.fs-segment-store.type=fs | ||
- node.attr.remote_store.repository.fs-state-store.settings.location=/tmp/opensearch/repo/state | ||
- node.attr.remote_store.repository.fs-state-store.type=fs | ||
- node.attr.remote_store.repository.fs-translog-store.settings.location=/tmp/opensearch/repo/translog | ||
- node.attr.remote_store.repository.fs-translog-store.type=fs | ||
- node.attr.remote_store.segment.repository=fs-segment-store | ||
- node.attr.remote_store.state.repository=fs-state-store | ||
- node.attr.remote_store.translog.repository=fs-translog-store | ||
- path.repo=/tmp/opensearch/repo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
$schema: ../../../json_schemas/test_story.schema.yaml | ||
|
||
description: Test restore from a remote store. | ||
prologues: | ||
- path: /_bulk | ||
method: POST | ||
parameters: | ||
refresh: true | ||
request: | ||
content_type: application/x-ndjson | ||
payload: | ||
- {create: {_index: books, _id: book1}} | ||
- {author: Harper Lee, title: To Kill a Mockingbird, year: 60} | ||
- {create: {_index: movies, _id: movie1}} | ||
- {director: Bennett Miller, title: The Cruise, year: 1998} | ||
- {create: {_index: movies, _id: movie2}} | ||
- {director: Nicolas Winding Refn, title: Drive, year: 1960} | ||
chapters: | ||
- synopsis: Restore from remote store. | ||
path: /_remotestore/_restore | ||
method: POST | ||
request: | ||
payload: | ||
indices: | ||
- movies | ||
|