-
Notifications
You must be signed in to change notification settings - Fork 27
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
HTTP recorder #12
Comments
The "automatically" is something that bothers me a bit, should we make this explicit? Should we simply record if there are no tracks? |
I think this should be configurable. I was thinking something like this: Record modes
|
I think they would sit well here then: |
Maybe instead of |
I agree, |
I didn't understand the reasoning behind the enum RecordingMode {
case None
case NewTracks
case All/Once
Is this what you have in mind? |
I don't know if we really need/want a
Makes any sense? |
Makes sense, I am just not sold with the naming. 😁 |
Suggestion❓ enum RecordingMode {
case None
case NewTracks
case NewVinyl
} And btw, looks like the plural of “vinyl” is “vinyl” 😄 |
With your suggestion, you actually raised an interesting question which is: on a test with multiple requests, how should those requests be treated? As individual vinyl with a single track, or one vinyl with multiple tracks? I am 👍 for the later. |
I think the 2nd approach is a better one otherwise we may need to support having multiple vinyl loaded (thank you for clarifying this @hugocf 😃), 1 per request. |
Initial draft Let's start with the new entities that will be added:
The second part is the enum: enum RecordingMode {
case None
case MissingTracks
case Vinyl
}
I think We would probably go with The final higher level item would be when to signal the recording to stop. DVR does this explicitly with the @dmcrodrigues let me know what you think |
I really like the option of use a I think About the default configuration I'm hesitating between |
If we go with the Let's look at the flow with
|
I was assuming that I think you have described an @RuiAAPeres what do you think? |
Ah good call! I contemplated the idea of:
But I forgot about:
So maybe: enum RecordingMode {
case None
case MissingTracks
case MissingVinyl
} With |
👍 |
I haven't had much time to start working on this, so I will remove myself from it, so anyone can tackle this. (if I have time, I will work on it tho) . |
I'll start working on this 🚴🏼 |
Since @dmcrodrigues hasn't had time to work on this, I've decided to take it on 🙈 |
Vinyl should provide a mechanism to automatically record all http traffic (request+response) for posterior replay.
The text was updated successfully, but these errors were encountered: