Skip to content

Match outgoing requests to existing recordings with a (slightly) different URI? #23

@epologee

Description

@epologee

The API I'm writing tests for with VCR requires some URLs to contain a time-based string signature, that renders a different signature every x seconds. When using VCR to replay url connections with newer signatures, the recorded url does not match and the test will attempt a new, actual connection to the server. This makes a lot of the testing code useless.

http://somedomain.com/v1/some/path?sig=5b4971244ce968c77294aa436616333e

Is there a way in the current VCR to somehow have a recorded call match outgoing requests with a different signature, maybe by changing the "uri" attribute of the json to include wildcards of some sort?

If not, would you be interested in a PR that adds this feature to VCR?

P.S. I absolutely love your VCR pod by the way, great job!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions