Azure / Azure/azure-sdk-tools

[Prioritized] Feature req: option to not serialize/deserialize request body

Open
#3,015 1 comment 0 reactions 1 assignee Claimed by @scbedd View on GitHub
Central-EngSys Test-Proxy
Dominant language
C#
Stars
135
Forks
260
Avg merge
3d 1h
Merged PRs (30d)
143

Description

As I mentioned in the sync yesterday:

Some methods for ACR require validation of the response body against a `Docker-Content-Digest` header. The test proxy serializes the response body during recording mode and deserializes it during playback, which causes any whitespace in the response body to be discarded. This means that the recomputed digest is different to what is in the Docker-Content-Digest header, causing tests to pass in live/record mode but fail in playback mode.

An option where the test proxy does not serialize the response body (so it just records it byte-for-byte, regardless of the content type) would be fantastic.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.