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

Reduce kafka-plugin test time; some JUnit 5 migrations #3972

Merged

Conversation

dlvenable
Copy link
Member

Description

Greatly reduce the time that the KafkaSinkTest takes by mocking the constructor. Update the unit tests to JUnit 5. Only the integration tests need JUnit 4 now, but these use quite a few JUnit 4 features.

The KafkaSinkTest was taking about 2 minutes 30 seconds because it was trying to connect to an actual Kafka bootstrap server. Now it takes under 3 seconds.

Issues Resolved

N/A

Check List

  • New functionality includes testing.
  • New functionality has a documentation issue. Please link to it in this PR.
    • New functionality has javadoc added
  • Commits are signed with a real name per the DCO

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.

…onstructor. Update the unit tests to JUnit 5. Only the integration tests need JUnit 4 now, but these use quite a few JUnit 4 features.

Signed-off-by: David Venable <[email protected]>
@dlvenable dlvenable changed the title Greatly reduce the time that the KafkaSinkTest takes by mocking the c… Reduce kafka-plugin test time; some JUnit 5 migrations Jan 17, 2024
Copy link
Contributor

@JonahCalvo JonahCalvo left a comment

Choose a reason for hiding this comment

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

Great changes, thanks!

@dlvenable dlvenable merged commit 334239b into opensearch-project:main Jan 17, 2024
48 of 50 checks passed
@dlvenable dlvenable deleted the kafka-plugins-test-improvements branch January 17, 2024 23:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants