test: cover AI code review changes in CfClientTest (#2)
Build and Analyse / build-and-analyse (push) Successful in 30s

- live tests for API error details (status code, Cloudflare errors),
  404 on deleting an unknown record, unknown zones with and without
  emptyResultThrowsException, closing the client, multi-level
  subdomains and the zone apex, server- and client-side type filter,
  record attributes (priority, comment, SRV data) and Instant
  timestamps
- testPaging fetches all pages with a small page size, therefore
  CfDnsClient got a package-private constructor with a custom page size
- testDns checks that recordUpdate doesn't modify the given record
- SRV records: the priority is part of the data, fixed javadoc,
  README and changelog accordingly

refs #2

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
thischwaandClaude Opus 5.5 committed 2026-11-03 18:02:16 +01:00
1 parent 20fabf9667
commit c3a5c5f3e5
6 files changed
+229 -17

No files matched your search

+2 -3
View File
@@ -200,10 +200,9 @@ RecordEntity mx = RecordEntity.build("example.com", RecordType.MX, 3600, "mail.e
mx.setPriority(10);
cfDnsClient.recordCreate(zone, mx);
// SRV record with structured data (keys as in the Cloudflare API)
// SRV record with structured data (keys as in the Cloudflare API), the priority is part of the data
RecordEntity srv = RecordEntity.build("_sip._tcp.example.com", RecordType.SRV, 3600, null);
srv.setPriority(10);
srv.setData(Map.of("weight", 5, "port", 5060, "target", "sip.example.com"));
srv.setData(Map.of("priority", 10, "weight", 5, "port", 5060, "target", "sip.example.com"));
cfDnsClient.recordCreate(zone, srv);
```