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

Add HttpWaitStrategy#withMethod #3533

Merged
merged 1 commit into from
Dec 10, 2020
Merged

Conversation

xaviarias
Copy link
Contributor

The class org.testcontainers.containers.wait.strategy.HttpWaitStrategy could be generalised for any HTTP method.

The reason is that some servers that use a different method instead of GET for the health endpoint, typically OPTIONS.

This PR adds a method parameter when building the wait strategy that allows this configuration while keeping the current behaviour by default.

@bsideup bsideup added this to the 1.15.1 milestone Dec 10, 2020
@bsideup bsideup merged commit 1b2d228 into testcontainers:master Dec 10, 2020
@bsideup bsideup changed the title Allow HTTP method configuration Add HttpWaitStrategy#withMethod Dec 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants