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

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

Open
epologee opened this issue Oct 2, 2014 · 0 comments

Comments

@epologee
Copy link
Contributor

epologee commented Oct 2, 2014

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!

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

No branches or pull requests

1 participant