Yelp / fuzz-lightyear

A pytest-inspired, DAST framework, capable of identifying vulnerabilities in a distributed, micro-service ecosystem through chaos engineering testing and stateful, Swagger fuzzing.
Other
205 stars 25 forks source link

investigate: can we merge sequence-based caches with request-based caches? #19

Open domanchi opened 4 years ago

domanchi commented 4 years ago

We perform sequence-based caching within the Response object (source). However, this doesn't support request-based caches, which are needed to have consistent values within dependent factory fixtures.

Currently, we handle this with an explicit call to clear_cache after the request is completed. However, this is kinda ugly and potentially foot-gun-like. Can we do better?

Full context here: https://github.com/Yelp/fuzz-lightyear/pull/14#discussion_r324943275