Skip to content

Releases: cloudtruth/interposer

v1.0.0

01 Jan 22:23
a8cc562
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.9.3...v1.0.0

v0.9.3

20 Jan 22:24
Compare
Choose a tag to compare
  • Update the README for log level 7 debugging on playback issues.
  • Update pyyaml to ~= 5.4.0 and bump build number.

v0.9.2

19 Oct 17:32
Compare
Choose a tag to compare
  • Allow redaction of bytes.

v0.9.1

26 Sep 12:40
Compare
Choose a tag to compare

Remove uncompressed recording file when starting a recording (so we do not append).

v0.9.0

24 Sep 22:40
Compare
Choose a tag to compare

Allow playback to work when the original secret is not available.

v0.8.1

24 Sep 18:27
Compare
Choose a tag to compare
  • Honor changes made to call arguments during on_call_begin

v0.8.0

24 Sep 16:17
Compare
Choose a tag to compare

[0.8.0] - 2020-09-21

This was a major refactoring to allow for custom call handlers.
All previous recordings are incompatible.

Breaking

  • Switched from json to pickle based hashing.
  • Separated the record/playback logic from the wrapping logic.

Changed

  • Added RecordedTestCase and @recorded decorators for easier testing.
  • Added the ability to stack call handlers.
  • Allow a call handler to determine if the result of a call gets rewrapped (to record calls on the result, i.e. selective diving).
  • Added automatic secret redaction from TapeDeck recordings.
  • Eliminated special case code for dealing with primitives.

v0.7.0

12 Sep 14:17
Compare
Choose a tag to compare

Breaking

  • Signatures of most of the cleanup methods have changed.
  • wrap no longer requires (or accepts) as_method for wrapping class instantiations.
  • wrap raises WrappingError if something is not wrappable.

Changed

  • Added support for wrapping modules.
  • Added support for wrapping object instantiations from class definitions.
  • Added support for builtins.
  • Added logging control for wrapping and calling.
  • Added support for conditionally replacing original return value with cleaned one.
  • Added support for conditionally not recording a call.
  • Consolidated determination of whether something is wrappable.
  • Fixed wrapping of property results.
  • Fixed incorrect wrapping of python primitives like str.
  • Fixed call order parameter storage could be modified after call.

v0.6.1

04 Sep 17:12
Compare
Choose a tag to compare
  • InterposedTestCase now allows for Interposer subclassing

v0.6.0

04 Sep 11:34
Compare
Choose a tag to compare
  • support enum and datetime params without requiring a subclass encoder
  • provide a working example
  • update README
  • remove superfluous debug log message on open