Skip to content

feat(vcr): allow for json body normalizations when recording cassettes#324

Merged
sabrenner merged 3 commits into
masterfrom
sabrenner/vcr-optional-body-normalization
Apr 13, 2026
Merged

feat(vcr): allow for json body normalizations when recording cassettes#324
sabrenner merged 3 commits into
masterfrom
sabrenner/vcr-optional-body-normalization

Conversation

@sabrenner

Copy link
Copy Markdown
Collaborator

Specifying --vcr-json-body-normalizers or VCR_JSON_BODY_NORMALIZERS will normalize all (nested) fields of each JSON request body when recording a cassette. This is so random things like generated IDs, dates, etc. that might not want to be counted towards a new cassette hash won't be counted.

@sabrenner sabrenner marked this pull request as ready for review April 13, 2026 20:33
@sabrenner sabrenner merged commit 5e545b9 into master Apr 13, 2026
28 checks passed
khanayan123 added a commit to DataDog/httpd-datadog that referenced this pull request Apr 22, 2026
The GitHub Actions 'test' job installs from requirements.txt (pinned
to v1.40.0), while GitLab's test-rum job uses uv sync from
pyproject.toml (which pulls latest). The prior commit added the new
required kwarg vcr_json_body_normalizers to unblock GitLab, but
that then broke the GitHub job because v1.40.0 doesn't accept the
kwarg yet.

Unify both envs on v1.50.1, which introduced vcr_json_body_normalizers
in v1.47.0 (PR DataDog/dd-apm-test-agent#324, 2026-04-13).

Co-Authored-By: Claude Opus 4 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants