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

Allow intercepting HTTP requests in integration tests #2651

Open
jvff opened this issue Oct 19, 2024 · 1 comment
Open

Allow intercepting HTTP requests in integration tests #2651

jvff opened this issue Oct 19, 2024 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@jvff
Copy link
Contributor

jvff commented Oct 19, 2024

Motivation

It is possible to perform HTTP requests from within Linera application contracts. However, when running integration tests those requests will be executed on a real network, which might not be desired.

Proposal

Provide a way to configure the TestValidator to intercept the HTTP requests, and maybe forward them to a custom handler.

@jvff jvff added the enhancement New feature or request label Oct 19, 2024
@jvff jvff added this to the Testnet #2 milestone Oct 19, 2024
@ma2bd
Copy link
Contributor

ma2bd commented Oct 19, 2024

We also need a notion of HTTP proxy to make sure that queries to the external web are indeed external. This could be related.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: No status
Development

No branches or pull requests

2 participants