cv / tv

Load and replay VCR cassettes with ease
MIT License
1 stars 1 forks source link

Support for more complex interactions (e.g.: token based auth, nonce, etc) #3

Open maxlinc opened 11 years ago

maxlinc commented 11 years ago

TV would not be possible to use with any system designed to prevent replay attacks. Token based auth, nonces, etc., would all make TV fail.

It's unlikely that TV could make any of this work out of the box, but could support VCR's features that may it possible for users to write the wiring necessary to overcome these problems: VCR's hooks, dynamic ERB cassettes, etc.

cv commented 11 years ago

I can imagine TV having a few different matching styles. On my current project, I built something similar (in C#) but that only looked at JSONPaths instead of all of the contents of the request (so we would allow fields to be added to a JSON response, but raise an error in case a field was deleted, for example).