Skip to content
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

Tests for _core refresh.yaml remote_info.yaml script_context.yaml #630

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions tests/default/_core/refresh.yaml
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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should remove it from here.

method: GET
response:
status: 200
10 changes: 10 additions & 0 deletions tests/default/_core/remote_info.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
$schema: ../../../json_schemas/test_story.schema.yaml
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The endpoint is remote, so rename this to remote/info.yaml.


description: Test _remote/info.

chapters:
- synopsis: Retrieve information about remote clusters.
path: /_remote/info
method: GET
response:
status: 200
10 changes: 10 additions & 0 deletions tests/default/_core/script_context.yaml
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
Loading