Skip to content

test(cloudflare): test client write and error paths at http edge - #2926

Merged
dan-petty merged 1 commit into
mainfrom
test/2153-cloudflare-client-http-tests
Oct 31, 2026
Merged

dan-petty merged 1 commit into
mainfrom
test/2153-cloudflare-client-http-tests

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Add a transport parameter to CloudflareClient to enable testing with httpx2.MockTransport without monkeypatching. Consolidate account and zone ID checks into _require_account and _require_zone helper methods across all 14 dependent methods. Add comprehensive unit tests covering Access applications, Access policies, DNS records, Argo tunnel configurations, and error handling at the HTTP edge.

Closes #2153

Add transport parameter to CloudflareClient to enable testing with httpx2.MockTransport without monkeypatching. Consolidate account and zone ID checks into _require_account and _require_zone helper methods across all 14 dependent methods. Add comprehensive unit tests covering Access applications, Access policies, DNS records, Argo tunnel configurations, and error handling at the HTTP edge.

Closes #2153
@dan-petty dan-petty added type/test Type test: a new or changed test scope/cloudflare Cloudflare tunnels, Access and DNS labels Oct 31, 2026
@dan-petty
dan-petty marked this pull request as ready for review October 31, 2026 21:11
@dan-petty
dan-petty merged commit 6d924c3 into main Oct 31, 2026
19 checks passed
@dan-petty
dan-petty deleted the test/2153-cloudflare-client-http-tests branch October 31, 2026 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/cloudflare Cloudflare tunnels, Access and DNS type/test Type test: a new or changed test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test(cloudflare): the access policy, include-rule, dns and tunnel write paths of the cloudflare client are tested at the http edge

1 participant