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

Mock multiple identical requests with different responses #104

Open
jesseshieh opened this issue May 28, 2017 · 4 comments
Open

Mock multiple identical requests with different responses #104

jesseshieh opened this issue May 28, 2017 · 4 comments

Comments

@jesseshieh
Copy link

My app polls a URL which returns "pending" until it returns "done". The URL is exactly the same each time I poll. Is it possible for exvcr to record the fact that the first request and the last request should send different responses?

@parroty
Copy link
Owner

parroty commented May 29, 2017

Thanks for the comment. Currently, identical requests would return the same result. One possibility is to add un-relevant query params (just for testing purpose) for differentiating first (pending) and second (done) requests. It may not be ideal, but what do you think?

@ananthakumaran
Copy link

I ran into a similar problem and it's not possible to change the query in our case. The actual HTTP request happens inside a library, which we have no control.

@naps62
Copy link

naps62 commented May 16, 2019

I'm also suffering from this issue. It's hard to mock requests from ExAws. For instance. trying to request two items from an SQS queue is the exact same request, even though it returns different responses

@joevandyk
Copy link

@parroty i tried appending different unique query strings to the URL, I'm still getting back a previous response.

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

5 participants