mirror of
https://github.com/jhd3197/ServerKit.git
synced 2026-11-30 12:15:28 +09:00
The recovery rebuild left the provider-registry cutover path a subset: the explicit-records staging classmethod DnsCutoverService.snapshot(domain, records, provider=, provider_zone_id=) was gone (only the server-sourced create_snapshot, which needs a live client, survived), and the 501 NO_PROVIDER body didn't name the provider. Re-add snapshot() (sibling of create_snapshot; stages caller- supplied records with no client so the provider guard fires at cutover time) and thread DnsCutoverError.provider through _resolve_dns_client into the API bodies. Un-skips test_dns_cutover_providers (plan 31 #12). Kept the rebuilt contract's UNWRAPPED /cutover success shape (proven by the surviving test_dns_cutover_api.py) rather than the pre-loss 'cutover'-wrapped shape, adapting that one assertion. 23 passed (providers + api + service), no regression. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>