Skip to content

Azure.Sdk.Tools.TestProxy_1.0.0-dev.20240509.1

Pre-release
Pre-release

Choose a tag to compare

@azure-sdk azure-sdk released this 09 May 20:10
57382d5
[TestProxy] Common Sanitizers (#8038)

- Each recording or playback session now gets a modifiable list of sanitizers that are applied.
 - Session sanitizers are now cut at playback or record start. Any further session sanitizer addition will not directly affect the recording that has been started.
- As a consequence of all these additional sanitizers, stored recordings will now be sanitized. The way this will work is
  - Client starts playback session, gets a recordingId back
  - Client uses recordingId to add a couple additional sanitizers
  - Client starts firing actual requests from the test
- The proxy will sanitize the loaded recording according to which sanitizers are active when the first real request for the playback session occurs.
 - Upon calling /Admin/AddSanitizers or Admin/AddSanitizer, an object or list of objects representing the registered sanitizers is now returned to the calling client. These objects - contain the base sanitizer properties + the id of the registered sanitizer.
 - Added route /Admin/RemoveSanitizers which can apply to either the session-level or an individual playback/record session.