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

test(wash): re-enable wash call test #1869

Conversation

vados-cosmonic
Copy link
Contributor

@vados-cosmonic vados-cosmonic commented Apr 10, 2024

Feature or Problem

Resolves #1644

Related Issues

Release Information

This PR modifies wash call to be able to support sending HTTP requests to actors that implement wasi:http/incoming-handler.handle

Consumer Impact

Testing

Unit Test(s)

Acceptance or Integration

Manual Verification

@vados-cosmonic vados-cosmonic force-pushed the test(wash)=re-enable-wash-call-test branch from f8b08be to 582faeb Compare April 16, 2024 07:18
@vados-cosmonic
Copy link
Contributor Author

Looks like some upstream changes have fixed wash call at least locally for me -- call succeeds now!

@vados-cosmonic vados-cosmonic force-pushed the test(wash)=re-enable-wash-call-test branch 5 times, most recently from 8de8f99 to 6c205ff Compare April 16, 2024 16:19
@vados-cosmonic vados-cosmonic marked this pull request as ready for review April 16, 2024 16:21
@vados-cosmonic vados-cosmonic requested review from a team as code owners April 16, 2024 16:21
crates/wash-cli/tests/wash_call.rs Outdated Show resolved Hide resolved
crates/wash-cli/tests/wash_call.rs Outdated Show resolved Hide resolved
crates/wash-cli/src/call.rs Outdated Show resolved Hide resolved
crates/wash-cli/src/call.rs Outdated Show resolved Hide resolved
@vados-cosmonic vados-cosmonic force-pushed the test(wash)=re-enable-wash-call-test branch 4 times, most recently from 115511d to d8c5c1d Compare April 17, 2024 11:10
@vados-cosmonic
Copy link
Contributor Author

Hey @brooksmtownsend I thought that we should add a bit more customization here, especially if we're going to show off wash call/use it with HTTP handlers. The code's a bit different (I expanded customization options) but the core is the same, probably reasonable to look at it with semi-fresh eyes now.

@vados-cosmonic vados-cosmonic force-pushed the test(wash)=re-enable-wash-call-test branch 3 times, most recently from 1d55ddc to 96c3c9e Compare April 17, 2024 14:01
@vados-cosmonic vados-cosmonic requested a review from a team as a code owner April 17, 2024 14:01
@vados-cosmonic vados-cosmonic enabled auto-merge (rebase) April 17, 2024 14:03
@vados-cosmonic vados-cosmonic force-pushed the test(wash)=re-enable-wash-call-test branch from 96c3c9e to 6535af6 Compare April 17, 2024 14:07
This commit re-enables the test for `wash call` that used to exist
prior to wRPC MVP integration.

To do this, we enable `wash call` to work for components that
implement the `wasi:http/incoming-handler` interface, taking a
JSON-fiied representation of a request (or a GET by defaul) and
invoking the relevant component.

Signed-off-by: Victor Adossi <vadossi@cosmonic.com>
@vados-cosmonic vados-cosmonic force-pushed the test(wash)=re-enable-wash-call-test branch from 6535af6 to 63933f9 Compare April 17, 2024 14:08
@vados-cosmonic vados-cosmonic merged commit fe3fcee into wasmCloud:main Apr 17, 2024
39 of 40 checks passed
@vados-cosmonic vados-cosmonic deleted the test(wash)=re-enable-wash-call-test branch April 17, 2024 14:32
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.

[FEATURE] Update wash call integration test to use a published wRPC component
2 participants