-
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.
Adds tests for /_remote/info and _script_context. (#637)
* tests/default/_core/ refresh, remote_info and script_context Signed-off-by: Bruno Lloret <[email protected]> Signed-off-by: dblock <[email protected]> Co-authored-by: Bruno Lloret <[email protected]>
- Loading branch information
1 parent
61e6ec3
commit 552e5e4
Showing
4 changed files
with
47 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
$schema: ../../../json_schemas/test_story.schema.yaml | ||
|
||
description: Test _refresh. | ||
|
||
chapters: | ||
- synopsis: Refresh all indices in the cluster. | ||
path: /_refresh | ||
method: GET | ||
response: | ||
status: 200 |
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,27 @@ | ||
$schema: ../../../../json_schemas/test_story.schema.yaml | ||
|
||
description: Test _remote/info. | ||
|
||
prologues: | ||
- method: PUT | ||
path: /_cluster/settings | ||
request: | ||
payload: | ||
transient: | ||
cluster.remote: | ||
cluster2: | ||
seeds: | ||
- localhost:4242 | ||
chapters: | ||
- synopsis: Retrieve information about remote clusters. | ||
path: /_remote/info | ||
method: GET | ||
response: | ||
status: 200 | ||
epilogues: | ||
- method: PUT | ||
path: /_cluster/settings | ||
request: | ||
payload: | ||
transient: | ||
cluster.remote.cluster2.seeds: [] |
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,10 @@ | ||
$schema: ../../../json_schemas/test_story.schema.yaml | ||
|
||
description: Test the _script_context endpoint to retrieve available script contexts. | ||
|
||
chapters: | ||
- synopsis: Retrieve available script contexts. | ||
path: /_script_context | ||
method: GET | ||
response: | ||
status: 200 |
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