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

Add vcr use case for not including hostname in matching #79

Open
sckott opened this issue Dec 18, 2020 · 0 comments
Open

Add vcr use case for not including hostname in matching #79

sckott opened this issue Dec 18, 2020 · 0 comments
Assignees

Comments

@sckott
Copy link
Collaborator

sckott commented Dec 18, 2020

E.g., if you're testing with different base urls, e.g., https://foo.com/api/v1/stuff?q=bird vs. https://bar.com/api/v1/stuff?q=bird - you can set match_requests_on = c("path", "query") to ignore the changing hostname so that when you set different hostnames in different contexts (local machine vs. CI vs. other context) the tests work all the same

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