Skip to content

Fix DORA deployment and incident read responses to use date-time timestamps#3746

Merged
api-clients-generation-pipeline[bot] merged 2 commits into
masterfrom
datadog-api-spec/generated/6101
Jul 7, 2026
Merged

Fix DORA deployment and incident read responses to use date-time timestamps#3746
api-clients-generation-pipeline[bot] merged 2 commits into
masterfrom
datadog-api-spec/generated/6101

Conversation

@api-clients-generation-pipeline

Copy link
Copy Markdown
Contributor

The Python client serializes tz-aware datetimes via datetime.isoformat(),
producing a "+00:00" UTC offset, while recorded cassettes use "Z". Both denote
the same instant, but the VCR replay body matcher compared them as differing
strings, so replay-only scenarios that send a datetime in the request body
(e.g. DORA ListDORADeployments) fail to match their cassette. The matcher also
only recognized "text/json", so "application/json" bodies skipped JSON-aware
comparison entirely and fell back to a raw byte compare.
@api-clients-generation-pipeline api-clients-generation-pipeline Bot force-pushed the datadog-api-spec/generated/6101 branch from 4f9311e to 2e712fc Compare July 7, 2026 11:35
@api-clients-generation-pipeline api-clients-generation-pipeline Bot force-pushed the datadog-api-spec/generated/6101 branch from 2e712fc to 52566ba Compare July 7, 2026 11:57
@api-clients-generation-pipeline api-clients-generation-pipeline Bot merged commit dce1052 into master Jul 7, 2026
14 checks passed
@api-clients-generation-pipeline api-clients-generation-pipeline Bot deleted the datadog-api-spec/generated/6101 branch July 7, 2026 13:03
github-actions Bot pushed a commit that referenced this pull request Jul 7, 2026
…stamps (#3746)

* tests: match request bodies with equivalent datetime timezone notations

The Python client serializes tz-aware datetimes via datetime.isoformat(),
producing a "+00:00" UTC offset, while recorded cassettes use "Z". Both denote
the same instant, but the VCR replay body matcher compared them as differing
strings, so replay-only scenarios that send a datetime in the request body
(e.g. DORA ListDORADeployments) fail to match their cassette. The matcher also
only recognized "text/json", so "application/json" bodies skipped JSON-aware
comparison entirely and fell back to a raw byte compare.

* Regenerate client from commit dcda436 of spec repo

---------

Co-authored-by: Francesco Pighi <francesco.pighi@datadoghq.com>
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com> dce1052
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants