Closed parroyo closed 5 years ago
Thanks for the contribution. This looks really good. I'm going to do some local testing. It seems like we would want to add some tests, especially around the selection of the right serializer when playing back.
Is there any chance to get this merged? Would be awesome to be able to have tests for interactions with S3 and Lambda Invoke.
Love Placebo. Thanks for all the work so far.
I'll pull and test this weekend.
As I found several problems serializing complex data in JSON documents, as described in #48 #45 and with others types like Dynamodb Binary or Decimal data. I added an option to use pickle to store the responses instead of JSON documents. Recording the responses in pickle format fixes all the complex types serialization issues.
The playback mode will look for the recorded responses in any of the supported formats, so you can use a mixed solution with JSON and pickle formats for different responses. All the previous generated JSON documents will be valid.