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

Run integration tests in CI #1662

Merged
merged 4 commits into from
Aug 24, 2023
Merged

Conversation

pquentin
Copy link
Member

Integration tests were skipped in CI because WAIT_FOR_ES was forgotten in the move from Travis to GitHub Actions. While I was here, I introduced a few changes, one per commit:

  • Inline elasticsearch.helpers.tests since it was removed from elasticsearch-py 8.x and certificates are not needed here. (But this will be ultimately removed in favor of more pytest-native code, like elasticsearch-py did.)
  • Rename nowait to wait because I find parameters with a negative name very confusing (we had nowait=False and nowait="WAIT_FOR_ES" not in os.environ!).
  • Fail the test and report the exception when WAIT_FOR_ES is set but the connection fails.
  • Enable integration tests in CI.

@pquentin pquentin requested a review from JoshMock August 24, 2023 12:32
@pquentin pquentin merged commit 9849502 into elastic:main Aug 24, 2023
13 checks passed
@pquentin pquentin deleted the run-integration-tests branch August 24, 2023 15:48
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.

2 participants