Closed the-mikedavis closed 2 years ago
Refactoring to use httpbin or replacing with a docker container would both work for me.
What do you think @whatyouhide, do you prefer over-the-internet tests or tests to a docker container?
If possible, I would suggest that we:
:over_the_internet
, and treat them as smoke testsSounds good @ericmj?
@the-mikedavis wanna work on this, or want us to take care of it? 🙃
actually if y'all wouldn't mind taking care of this, that'd probably be best :)
It looks like the
http2.golang.org
server got shut down recently (see https://github.com/golang/go/issues/49301), causing those integration tests to fail.The workaround is easy:
mix test --exclude integration
but it'd be nice to have those integration tests.Local cowboy servers seem like a good option, but as y'all say in #268:
Maybe it makes sense to switch to
httpbin.org
for integration tests? And/or add the golangh2demo
docker container to thedocker-compose
? I know Finch uses Bypass for some tests (example) and it seems to work pretty well and is easy to write, but it's also a local server.What do you think? I'd be willing to take a stab at this (ofc if y'all want to keep CI/testing concerns close to the vest I understand that).