Skip to content

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.

2 participants