-
Notifications
You must be signed in to change notification settings - Fork 90
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
feat: add ic-cdk-http-kit, a toolkit for testing http outcalls on the IC #393
base: main
Are you sure you want to change the base?
Conversation
A friendly ping to review this PR. |
A friendly ping to review updates. |
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! |
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_request
function fromic_cdk
by 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.sh
covers all the tests:Checklist: