-
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
Rest Tests for Painless do not respect the API spec #25737
Comments
The test is run, but the java yaml test runner doesn't check whether required parameters are specified or not. That unfortunately allows for writing tests that may not work when run from other runners. Marking adoptme. |
Hey @javanna, can I give this one a try if you are not working on it? my thinking is to enforce not only the |
go for it @olcbean , thanks! |
@honzakral the test is correct but unfortunately the #27035 makes sure that if a url parameter is specified as @honzakral @javanna is there anything else that needs to be done for this issue? |
I think we are good @olcbean , closing! Thanks a lot for your contributions! |
In (0) you can see a test that uses
lang
instead ofid
to get around the bug fixed by #25736This test, however, should be failing since it doesn't specify both
lang
andid
which are marked as required in the API spec. This suggests that either the test is not being run as it should or that the test runner doesn't check for all required attributes.0 - https://github.com/elastic/elasticsearch/blob/5.x/modules/lang-painless/src/test/resources/rest-api-spec/test/painless/16_update2.yaml#L7-L9
The text was updated successfully, but these errors were encountered: