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

Develop a process for retrospectively generating predicates #247

Open
lyricnz opened this issue Jun 2, 2017 · 3 comments
Open

Develop a process for retrospectively generating predicates #247

lyricnz opened this issue Jun 2, 2017 · 3 comments

Comments

@lyricnz
Copy link

lyricnz commented Jun 2, 2017

The existing predicateGenerators functionality works really well if you know exactly how to match the requests before you begin; however sometimes you have limited opportunity to put mountebank in the middle of the traffic flow, or need some experimentation to determine exactly how to match (or how the predicates->responses generation will work out).

In those cases, it would be useful to be able to record everything (request+response), then "have a shot at" writing the predicateGenerators, and see how it pans out. Rather than reinventing the predicateGenerators logic, I guess this means being able to replay recorded requests into the system (just like as if they were being observed in realtime).

Thoughts?

@bbyars
Copy link
Owner

bbyars commented Jun 3, 2017

Thanks. Do you have any ideas what the "interface" to this might look like?

@lyricnz
Copy link
Author

lyricnz commented Jun 3, 2017

An endpoint that can accept the JSON emitted by "mb save" and process each request-response via the current predicateGenerators? (optionally dropping the current generated state, so it's clean)

@bbyars
Copy link
Owner

bbyars commented Jun 11, 2017

That makes sense.

@bbyars bbyars added this to the Unprioritized milestone Jul 22, 2017
@bbyars bbyars removed this from the Unprioritized milestone Jul 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants