Skip to content

feat: add ic-mock-http-canister-runtime crate#38

Merged
lpahlavi merged 2 commits intomainfrom
lpahlavi/mock-http-runtime
Nov 6, 2025
Merged

feat: add ic-mock-http-canister-runtime crate#38
lpahlavi merged 2 commits intomainfrom
lpahlavi/mock-http-runtime

Conversation

@lpahlavi
Copy link
Contributor

@lpahlavi lpahlavi commented Nov 5, 2025

Add crate with Runtime that allows mocking HTTP outcalls with Pocket IC.

@lpahlavi lpahlavi changed the base branch from main to lpahlavi/wallet-runtime November 5, 2025 12:26
@lpahlavi lpahlavi force-pushed the lpahlavi/wallet-runtime branch 2 times, most recently from 190adb7 to 37efc56 Compare November 5, 2025 12:46
@lpahlavi lpahlavi force-pushed the lpahlavi/mock-http-runtime branch 5 times, most recently from 0a0286b to 713e3f4 Compare November 5, 2025 13:25
@lpahlavi lpahlavi force-pushed the lpahlavi/wallet-runtime branch from 37efc56 to 2e25bf6 Compare November 5, 2025 13:37
@lpahlavi lpahlavi force-pushed the lpahlavi/mock-http-runtime branch from 713e3f4 to 9e92adb Compare November 5, 2025 13:38
@lpahlavi lpahlavi force-pushed the lpahlavi/wallet-runtime branch from 2e25bf6 to 08a795d Compare November 6, 2025 09:31
@lpahlavi lpahlavi force-pushed the lpahlavi/mock-http-runtime branch from 9e92adb to 04c8f83 Compare November 6, 2025 09:56
@lpahlavi lpahlavi changed the title feat: add mock-http-runtime crate feat: add ic-mock-http-canister-runtime crate Nov 6, 2025
Base automatically changed from lpahlavi/wallet-runtime to main November 6, 2025 13:13
@lpahlavi lpahlavi force-pushed the lpahlavi/mock-http-runtime branch from 04c8f83 to 2c7145f Compare November 6, 2025 13:16
@lpahlavi lpahlavi requested a review from gregorydemay November 6, 2025 13:19
@lpahlavi lpahlavi marked this pull request as ready for review November 6, 2025 13:20
@lpahlavi lpahlavi requested a review from a team as a code owner November 6, 2025 13:20
Copy link
Contributor

@gregorydemay gregorydemay left a comment

Choose a reason for hiding this comment

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

Thanks @lpahlavi !

@lpahlavi lpahlavi merged commit e68a311 into main Nov 6, 2025
9 checks passed
@lpahlavi lpahlavi deleted the lpahlavi/mock-http-runtime branch November 6, 2025 14:55
This was referenced Nov 20, 2025
gregorydemay pushed a commit that referenced this pull request Nov 21, 2025
## 🤖 New release

* `canhttp`: 0.3.0 -> 0.4.0
* `ic-canister-runtime`: 0.1.0
* `ic-agent-canister-runtime`: 0.1.0
* `ic-pocket-canister-runtime`: 0.1.0

<details><summary><i><b>Changelog</b></i></summary><p>

## `canhttp`

<blockquote>

## [0.4.0] - 2025-11-21

### Added

- Add `JsonRpcHttpLayer` which combines the `HttpConversionLayer`,
`JsonConversionLayer` and `ConsistentJsonRpcIdFilter` middlewares into a
single convenient-to-use layer
([#46](#46))
- Add example canisters demonstrating JSON-RPC functionalities and
parallel calls ([#48](#48))

### Changed

- Bump `ic-cdk` to v0.19.0
([#40](#40))

### Fixed

- Missing optional dependency on `serde` for `multi` feature
([#47](#47))

[0.4.0]:
https://github.com/dfinity/canhttp/compare/canhttp-0.3.0..canhttp-0.4.0
</blockquote>

## `ic-canister-runtime`

<blockquote>

## [0.1.0] - 2025-11-21

### Added

- Add helper methods to `CyclesWalletRuntime`
([#44](#44))
- Add READMEs and examples
([#42](#42))
- Add `StubRuntime` ([#41](#41))
- Add `CyclesWalletRuntime`
([#37](#37))
- Add `Runtime` crate and `IcRuntime` implementation
([#35](#35))

[0.1.0]:
https://github.com/dfinity/canhttp/releases/tag/ic-canister-runtime-v0.1.0
</blockquote>

## `ic-agent-canister-runtime`

<blockquote>

## [0.1.0] - 2025-11-21

### Added

- Add `AgentRuntime` ([#36](#36))

[0.1.0]:
https://github.com/dfinity/canhttp/releases/tag/ic-agent-canister-runtime-v0.1.0
</blockquote>

## `ic-pocket-canister-runtime`

<blockquote>

## [0.1.0] - 2025-11-21

### Added

- Add `ExecuteHttpOutcallMocks` trait and support for PocketIC live mode
([#43](#43))
- Add READMEs and examples
([#42](#42))
- Add `PocketIcRuntime` and mock HTTP mock infrastructure
([#38](#38))

[0.1.0]:
https://github.com/dfinity/canhttp/releases/tag/ic-pocket-canister-runtime-v0.1.0
</blockquote>


</p></details>

---
This PR was generated with
[release-plz](https://github.com/release-plz/release-plz/).

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Louis Pahlavi <louis.pahlavi@dfinity.org>
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