feat: add ic-cdk-http-kit, a toolkit for testing http outcalls on the IC#393
Open
feat: add ic-cdk-http-kit, a toolkit for testing http outcalls on the IC#393
Conversation
Contributor
Author
|
A friendly ping to review this PR. |
Contributor
Author
|
A friendly ping to review updates. |
Contributor
Author
|
Hi all, Just wanted to give a quick nudge on this PR. I've addressed all the previous comments, added some CI tests and it should be ready for another look. I understand it's not top of the list, but I believe it contributes into improving dev experience effort. If there's anything else needed, please let me know. Thank you so much for your time! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This change adds
ic-cdk-http-kit, a simple toolkit for constructing and testing HTTP Outcalls on the Internet Computer.It streamlines unit testing of HTTP Outcalls and provides user-friendly utilities.
The crate simulates the
http_requestfunction fromic_cdkby retrieving mock responses, checking the maximum allowed size, and applying a transformation function if specified, optionally with a delay to simulate latency.README.md is generated automatically from the crate documentation.
How Has This Been Tested?
ic-cdk-http-kit/run_all_tests.shcovers all the tests:Checklist: