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

Add resolve API test #506

Merged
merged 5 commits into from
Aug 14, 2024
Merged

Conversation

Naarcha-AWS
Copy link
Contributor

Description

Adds the test for the _resolve endpoint in the current index.yaml test.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Archer <[email protected]>
Copy link

github-actions bot commented Aug 13, 2024

Changes Analysis

Commit SHA: 721f951
Comparing To SHA: 09824d0

API Changes

Summary

NO CHANGES

Report

The full API changes report is available at: https://github.com/opensearch-project/opensearch-api-specification/actions/runs/10385601806/artifacts/1810724266

API Coverage

Before After Δ
Covered (%) 524 (51.32 %) 524 (51.32 %) 0 (0 %)
Uncovered (%) 497 (48.68 %) 497 (48.68 %) 0 (0 %)
Unknown 26 26 0

@Naarcha-AWS
Copy link
Contributor Author

Curious if I put this test in the right location. Here is the endpoint in the spec:

Copy link
Member

@dblock dblock left a comment

Choose a reason for hiding this comment

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

Lets put this in its own path, tests/default/indices/resolve.yaml.

The path in the test will have to be /_resolve/index/{name} as in the spec and {name} will come in parameters. Pre-create the index in a prologues and delete it in epilogues. Also test that a response to an index that doesn't exist is a 404.

Copy link

Spec Test Coverage Analysis

Total Tested
550 216 (39.27 %)

@dblock dblock added the skip-changelog No need to update CHANGELOG. label Aug 14, 2024
@dblock dblock merged commit 89e383b into opensearch-project:main Aug 14, 2024
14 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip-changelog No need to update CHANGELOG.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants