fix(sys-dns-cloudflare-records): root the API constant at /zones

The bare https://api.cloudflare.com/client/v4 answers HTTP 404, so test_urls_reachable failed test-external in run 42056917806. Every request of the plugin goes below /zones; the constant now names that path, which answers 403 (alive for the URL test), and the requested URLs stay byte-identical.

🎯 Fix: 95 %
💥 Break: 1 %
💸 Cost: –
⏱️ Time: –
🛡️ Security: 100 %
🏆 Score: 94
🚦 Gate: ✅ 90/5, cost and time <= 100, security 100 %

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
kevinveenbirkenbachandClaude Opus 5.5 committed 2026-11-05 16:18:01 +00:00
1 parent 735308266e
commit d301a4d3c3
2 files changed
+7 -7

No files matched your search

@@ -296,7 +296,7 @@ class TestCloudflareRecordsConverged(unittest.TestCase):
):
records = [a("www"), a("api")]
error = HTTPError(
f"{plugin.API}/zones?name={ZONE}", 429, "Too Many Requests", {}, None
f"{plugin.ZONES}?name={ZONE}", 429, "Too Many Requests", {}, None
)
cloudflare = _FakeCloudflare([[]], error=error)