Skip to content

Construct Test Coverage for Vercel DNS Verification and HTTPS Certificate Provisioning #579

@temma02

Description

@temma02

Description

Build test coverage for the Vercel DNS verification and HTTPS certificate provisioning flow, covering DNS record validation, certificate issuance polling, and provisioning failure handling.

Requirements and Context

  • Testing: Target apps/backend/src/app/api/deployments/[id]/dns/verify/route.ts and https/route.ts
  • Coverage: Cover DNS validation, certificate polling, and failure paths
  • Documentation: Document the DNS/HTTPS provisioning flow

Suggested Execution

Branch: test/issue-043-vercel-dns-https-provisioning-tests

Implement Changes

  • Add tests for DNS record validation (A, CNAME, TXT records)
  • Test certificate provisioning state polling (pending → issued)
  • Assert correct handling of DNS verification failures and certificate issuance errors
  • Test timeout behavior when certificate provisioning stalls

Test and Commit

  • Cover DNS validation, certificate polling, and failure scenarios
  • Assert correct error responses for each failure mode
  • Document the DNS/HTTPS flow

Example Commit Message

test(vercel): add coverage for DNS verification and HTTPS certificate provisioning

- Test DNS record validation for A/CNAME/TXT records
- Test certificate provisioning state polling
- Assert correct handling of verification and issuance failures

Guidelines

  • Mock Vercel DNS and certificate APIs
  • Test polling timeout behavior explicitly
  • Use realistic DNS record fixtures

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions