garnaat / placebo

Make boto3 calls that look real but have no effect.
Apache License 2.0
394 stars 28 forks source link

Add support for pickle serialization #53

Closed parroyo closed 5 years ago

parroyo commented 8 years ago

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.

garnaat commented 6 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.

nimbusscale commented 5 years ago

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.

garnaat commented 5 years ago

I'll pull and test this weekend.