Skip to content

Add HttpWaitStrategy#237

Open
gossi wants to merge 1 commit intotestcontainers:mainfrom
gossi:http-wait-strategy
Open

Add HttpWaitStrategy#237
gossi wants to merge 1 commit intotestcontainers:mainfrom
gossi:http-wait-strategy

Conversation

@gossi
Copy link
Contributor

@gossi gossi commented Feb 3, 2026

Impl for #236

I originally build this for Req. Then saw, there is Tesla. I followed their docs to build the client and make a request - I never used tesla before. I checked the response type from tesla and req and they are pretty equal for the response.

While I tested this with Req, this PR is completely untested - but I thought it's good enough to say hello :)

@jarlah
Copy link
Member

jarlah commented Feb 3, 2026

looks useful :) should be very easy to test it in a isolated manner outside a container configuration. Just start a container with the exunit macro and then construct and call the strategy ? then another test would be to create a special container, maybe an nginx container, that serves a specific html file or something. However it seems to always take a map in the match function. Is it a requirement as the strategy is now that response must be json ? Should it require that?

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