-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Updates to TESTING.asciidoc for REST testing #52862
Conversation
Pinging @elastic/es-core-infra (:Core/Infra/Build) |
Pinging @elastic/es-docs (>docs) |
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.
LGTM
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.
One question. Otherwise LGTM.
--------------------------------------------------------------------------- | ||
restResources { | ||
restApi { | ||
includeCore '_common', 'indices', 'index', 'cluster', 'nodes', 'get', 'ingest' |
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.
Is the underscore prefix to "common" required?
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.
yeah it's required to match the pattern
This will result in a pattern match of _common*/**
. The file we are matching is _common.json. The api's don't use use folders, so we could change the pattern match to be *common*.json
, however the tests do use folders so those would need to stay <prefix>*/**
(or the like). I figured a simple prefix match for both would be simplest to reason about, but am open to change (in a different PR)
Update documentation for: * restResources config (related elastic#52114) * call out YAML vs. Java based Rest tests * update example to use newer syntax * update example to target a test that is not skipped * provide example for bwcRest test (related elastic#52383)
Update documentation for: * restResources config (related elastic#52114) * call out YAML vs. Java based Rest tests * update example to use newer syntax * update example to target a test that is not skipped * provide example for bwcRest test (related elastic#52383)
I've removed the backport pending label as this looks to have been merged into 7.6 |
Update documentation for: