Skip to content

Update dependency resolution#23159

Merged
Kyle-Neale merged 1 commit intomasterfrom
bot/update-dependency-resolution-1775231073
Apr 3, 2026
Merged

Update dependency resolution#23159
Kyle-Neale merged 1 commit intomasterfrom
bot/update-dependency-resolution-1775231073

Conversation

@datadog-agent-integrations-bot
Copy link
Copy Markdown
Contributor

Motivation

Direct dependencies were updated in f1bc291 (triggered by PR #23124).

Additional Notes

This PR was automatically generated by the following workflow:
https://github.com/DataDog/integrations-core/actions/runs/23950769511

@Kyle-Neale Kyle-Neale added this pull request to the merge queue Apr 3, 2026
Merged via the queue into master with commit 1d86f9f Apr 3, 2026
57 of 67 checks passed
@Kyle-Neale Kyle-Neale deleted the bot/update-dependency-resolution-1775231073 branch April 3, 2026 19:24
@dd-octo-sts dd-octo-sts Bot added this to the 7.79.0 milestone Apr 3, 2026
mwdd146980 added a commit that referenced this pull request Apr 5, 2026
* Update dependency resolution (#23159)

Co-authored-by: Kyle-Neale <37895372+Kyle-Neale@users.noreply.github.com>

* Swap mock_http_response fixture from MockResponse to MockHTTPResponse

Replace the requests-coupled MockResponse with the library-agnostic
MockHTTPResponse in the mock_response fixture, decoupling ~102 test
files from the requests library without touching individual test code.

- Swap mock_response fixture to yield MockHTTPResponse
- Fix mock_http_response_per_endpoint fallback to use fixture parameter
- Remove sonatype_nexus local fixture override (now redundant)
- Update match strings in 9 integrations from requests.exceptions.HTTPError
  to HTTPStatusError (our own shared exception class)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Add parameter order comment + fix sonatype_nexus test bug

Document that MockHTTPResponse has a different parameter order than
MockResponse (all callers use keyword args, so not a compatibility
concern).

Fix test_successful_metrics_collection which was passing vacuously:
dict.update() returns None so json_data was always None, the check's
json decode failed silently, no metrics were submitted, and
assert_all_metrics_covered() trivially passed. Provide complete mock
data for both API calls and add individual metric assertions.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Re-add _CaseInsensitiveDict to MockHTTPResponse for step3b fixture swap

Step3b will make MockHTTPResponse the backing for all mock_http_response
fixture users (~102 test files). Production code accesses headers with
original-case keys (e.g. response.headers['Content-Type']), which would
KeyError or silently return wrong values with the plain lowered-key dict.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Address PR 3b review: harden _CaseInsensitiveDict, fix test redundancy

- Add missing dict methods (__delitem__, pop, update, setdefault) to
  _CaseInsensitiveDict so tests won't silently break if production code
  uses them on response headers
- Make isinstance guards consistent across all methods
- Replace redundant `assert in` checks with mixed-case .get() per
  reviewer suggestion; add tests for new dict methods
- Add TODO(httpx-migration) comment on per-endpoint fixture default

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Fix response.raw and response.url on MockHTTPResponse

Make raw.read delegate to BytesIO stream so json.load(r.raw) works
(fixes kubelet_base test regression). Add url attribute with default ''
(fixes sonatype_nexus test_timeout_error accessing response.url).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Address agint-review nits: fix iterable update, add url test, remove dead args

- Fix _CaseInsensitiveDict.update() to lowercase keys from iterable-of-pairs
- Add test_mock_response_url() for MockHTTPResponse url parameter
- Remove dead URL positional args from 7 sonatype_nexus test calls

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Address review round 2: revert test churn, extract mock method constant

- Revert unnecessary Content-Type → content-type case change in test
- Extract _DEFAULT_MOCK_METHOD constant for requests.Session.get default

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: datadog-agent-integrations-bot[bot] <159767151+datadog-agent-integrations-bot[bot]@users.noreply.github.com>
Co-authored-by: Kyle-Neale <37895372+Kyle-Neale@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

1 participant