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

Update to handle new conformance tests #93

Merged
merged 1 commit into from
Jun 17, 2024
Merged

Update to handle new conformance tests #93

merged 1 commit into from
Jun 17, 2024

Conversation

rylev
Copy link
Collaborator

@rylev rylev commented Jun 14, 2024

Updates the conformance tests to run fermyon/conformance-tests#2

This required adding one feature to spin-test. Now the http-handler interface allows the user to not only specify an exact response for a given URL, but they can instead request that the request is echoed back as a response. This makes mocking the http-echo service much easier and can be useful for testing.

@rylev rylev requested review from lann and fibonacci1729 June 14, 2024 13:02
@rylev rylev force-pushed the new-conformance branch 2 times, most recently from 892024a to bdf09c6 Compare June 17, 2024 14:03
Comment on lines +5 to +6
// We don't use port 80 because URL parsing treats port 80 special
// and will not include it in the URL string representation which breaks the test
Copy link

@lann lann Jun 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this be fixed by bytecodealliance/wasmtime#8563 ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we'll still run into because we're parsing the URL in the test component.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As usual, moving large chunks of code in commits that also change that code (?) makes review difficult. As in, I didn't review this file. 😅

I'm sure I have never been guilty of this in the past week.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry about this! There were a few additions, but I believe besides that nothing changed.

@rylev rylev merged commit 2b551d0 into main Jun 17, 2024
6 checks passed
@rylev rylev deleted the new-conformance branch June 19, 2024 15:43
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