Skip to content

Replace custom HTTP mocking setup #3125

Closed
@Turbo87

Description

@Turbo87

In the crates.io testsuite we are currently using a custom HTTP mocking setup, based on implementing an HTTP proxy server that intercepts reqwest requests.

This setup is somewhat hard to use though, and it might be possible to use something like https://docs.rs/mockito instead, which could make it easier to understand and write tests for our codebase.

#3121 already introduces the mockito dependency for HTTP mocking of the pagerduty API, but it might be worth investigating if we could use it the same way for the GitHub and S3 API requests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-backend ⚙️C-internal 🔧Category: Nonessential work that would make the codebase more consistent or clear

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions