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

Allow matching requests by headers #56

Merged
merged 6 commits into from
Apr 27, 2016
Merged

Conversation

drapergeek
Copy link
Contributor

A lot of apps authenticate via a token in the headers. We ran into an issue where exvcr would not allow us to make a request to the same endpoint as a different user and verify different results. This adds the support to allow matching by headers.

I'm happy to take any feedback. Please let me know if there is anything missing.

@@ -9,4 +9,12 @@ defmodule ExVCR.Util do
def uniq_id do
:os.timestamp |> Tuple.to_list |> Enum.join("")
end

@doc """
Takes a keyword lists and returns then as strings.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

them

@coveralls
Copy link

Coverage Status

Coverage increased (+0.1%) to 93.431% when pulling d7e22c0 on drapergeek:jd-headers into 0ae8a0f on parroty:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.1%) to 93.431% when pulling 33b7f1b on drapergeek:jd-headers into 0ae8a0f on parroty:master.

@parroty parroty merged commit 8445f68 into parroty:master Apr 27, 2016
@drapergeek
Copy link
Contributor Author

Thanks for merging!

Wish I squashed the commits before submitting 😞

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

Successfully merging this pull request may close these issues.

4 participants