Skip to content

test(contract): record cassettes + verify request-body shapes for new purchase/write endpoints #211

Description

@millsmillsymills

PRs #206, #207, #208 added new write/purchase tools whose outgoing request-body shapes are unverified against the live API — the mocked tests only assert the body the code currently sends, so a wrong field name would pass. Record cassettes by hand and confirm each shape.

Endpoints to record + verify

  • gandi_domain_restore — restore POST body.
  • gandi_domain_update_owner_contact — owner/registrant change; body assumed {"owner": {...}}. Verify the wrapper key.
  • gandi_email_update_offer — offer PATCH body.
  • gandi_email_renew_all_mailboxes — per-domain renew; body assumed {"duration": <years>}. Verify duration is the correct key.
  • gandi_cert_* DCV / CRT / packages / update endpoints from feat(cert): DCV, CRT fetch, packages, update tools #208.

Notes

Follow-up from the review/merge cycle (CONSIDER items on #206/#207).

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-for-humanRequires human implementationsafety-gateTouches the three-tier safety-gate invariants (readonly / no-purchase)testingTest coverage gap or test infrastructure

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions