morenol requested elliottt for a review on PR #8676.
morenol opened PR #8676 from morenol:add-test-to-http-request-without-port
to bytecodealliance:main
:
<!--
Please make sure you include the following information:
If this work has been discussed elsewhere, please include a link to that
conversation. If it was discussed in an issue, just mention "issue #...".Explain why this change is needed. If the details are in an issue already,
this can be brief.Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.htmlPlease ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->
morenol requested wasmtime-core-reviewers for a review on PR #8676.
elliottt submitted PR review.
elliottt submitted PR review.
elliottt created PR review comment:
Could you add an additional request for a path that will return a 200?
alexcrichton commented on PR #8676:
Thanks! To land this though it'll need to pass CI, so mind folding this into https://github.com/bytecodealliance/wasmtime/pull/8671?
morenol commented on PR #8676:
Yes, I was just trying to make sure that this fails on main, but it looks like it is failing not in the expected way for me to fail.
morenol submitted PR review.
morenol created PR review comment:
Sure, for some reason this is returning
404
in the CI, any idea why?
morenol edited PR review comment.
morenol edited PR review comment.
iawia002 commented on PR #8676:
Thanks! To land this though it'll need to pass CI, so mind folding this into #8671?
I am back online, @morenol do you mind if I cherry-pick this commit into #8671 and square them into one commit? I hope we can land this fix soon.
iawia002 edited a comment on PR #8676:
Thanks! To land this though it'll need to pass CI, so mind folding this into #8671?
I am back online, @morenol do you mind if I cherry-pick this commit into #8671 and square them into one commit? For the URL without a port, I think it needs #8671 to be merged first. I hope we can land this fix soon.
morenol commented on PR #8676:
I don't mind but I think that this test is not accurate, feel free to check and create a test that could reproduce the current issue
elliottt submitted PR review.
elliottt created PR review comment:
Ah, my mistake: this is handing that request to the
API_PROXY_COMPONENT
test-program, located incrates/test-programs/src/bin/api-proxy.rs
. That incoming handler will always return a 200, as it runs sanity checks on the state of the request as seen by an incoming handler.I think you'll want to add a new incoming handler like api-proxy.rs that actually forwards the requests on, returning the result that it gets directly. Alternatively, you could add a new incoming handler that makes the request to
example.com
and returns that response, for any incoming request that it receives.
morenol updated PR #8676.
morenol updated PR #8676.
morenol closed without merge PR #8676.
morenol commented on PR #8676:
Closed since a similar test was added in #8671
Last updated: Nov 22 2024 at 16:03 UTC