-
Notifications
You must be signed in to change notification settings - Fork 59
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
[BUG] Hello World sample validator reverses logic #591
Comments
Hello @dbwiddis, I would like to take this issue |
Great! It's yours! This is one where you will need to create two PRs, one here and one on OpenSearch. On your local checkout you will make the change on OpenSearch branch and use |
In the test testValidatedSettings() method, I get an error of 246 lines when I run Junit Test, I think I can temporarily remove the first 3 lines of this method to make this issue(I get an error because of this line: final String expected = randomAlphaOfLengthBetween(1, 5);) |
Yes, just remove that. It works on OpenSearch but we don't have the right setup for it to work for us. Just pick a test string of your own. |
Done in #608 and opensearch-project/OpenSearch#6823 |
What is the bug?
A sample validated setting was added to the HelloWorld extension in #421. It is based on original assumptions that a matching validator would fail. During review of the companion PR, the implementation reversed the logic so it now does the opposite of what's intended.
The unit test was missing the
@Test
annotation so it wasn't being adequately tested, as I noticed when reviewing code coverage.How can one reproduce the bug?
@Test
annotation toTestHelloWorldExtension
methodtestValidatedSettings()
.gradle check
What is the expected behavior?
Tests pass.
Do you have any additional context?
Possible resolutions:
Bonus points:
The text was updated successfully, but these errors were encountered: