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

[Rename] Fix test SynonymsAnalysisTests.testSynonymsAnalysis for renaming #456

Conversation

harold-wang
Copy link
Contributor

@harold-wang harold-wang commented Mar 24, 2021

Fix failing testcase org.opensearch.analysis.common.SynonymsAnalysisTests.testSynonymsAnalysis

Issue #441

Signed-off-by: Harold Wang [email protected]

…onymsAnalysis for renaming

Signed-off-by: Harold Wang <[email protected]>
@odfe-release-bot
Copy link

✅   DCO Check Passed 3c49199

@odfe-release-bot
Copy link

✅   Gradle Wrapper Validation success 3c49199

@harold-wang harold-wang self-assigned this Mar 24, 2021
@harold-wang harold-wang added :test Adding or fixing a test >FORK Related to the fork process Rename Renaming to OpenSearch labels Mar 24, 2021
@@ -74,15 +74,15 @@ public void testSynonymsAnalysis() throws IOException {
IndexSettings idxSettings = IndexSettingsModule.newIndexSettings("index", settings);
indexAnalyzers = createTestAnalysis(idxSettings, settings, new CommonAnalysisPlugin()).indexAnalyzers;

match("synonymAnalyzer", "kimchy is the dude abides", "shay is the elasticsearch man!");
match("synonymAnalyzer", "kimchy is the dude abides", "shay is the opensearch man!");
Copy link
Contributor

@adnapibar adnapibar Mar 24, 2021

Choose a reason for hiding this comment

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

We are replacing some of the names used in tests - see #454 which also fixes this failing test.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for information, I did not know that you were working on this one:

Copy link
Contributor

Choose a reason for hiding this comment

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

I wasn't actually fixing the tests but rather renaming the data and that fixed the test.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That is also good idea.

@odfe-release-bot
Copy link

✅   Gradle Precommit success 3c49199

@odfe-release-bot
Copy link

✅   DCO Check Passed 85696aa

@odfe-release-bot
Copy link

✅   Gradle Wrapper Validation success 85696aa

@odfe-release-bot
Copy link

✅   Gradle Precommit success 85696aa

@harold-wang
Copy link
Contributor Author

close this PR which is overlapped with #454 (#454 is already merged).

@harold-wang harold-wang deleted the gradlew_check_testSynonymsAnalysis branch April 12, 2021 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>FORK Related to the fork process Rename Renaming to OpenSearch :test Adding or fixing a test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants