Skip to content

test: use recorded RDAP data in domain expiry test - #199

Merged
Igloczek merged 1 commit into
mainfrom
t3/fix-domain-expiry-test
Nov 21, 2026
Merged

Igloczek merged 1 commit into
mainfrom
t3/fix-domain-expiry-test

Conversation

@Igloczek

Copy link
Copy Markdown
Collaborator

Problem

CI on main has failed since 2026-11-19 on one test: Domain Expiry > getExpiryDate() returns correct expiry date for .wiki domain with no A record. The test looked up google.wiki over the network and expected an expiry of exactly 2026-11-26T23:59:59Z. Google renewed the domain, so the lookup now returns 2027-11-26.

Fix

The test serves recorded answers through a scoped fetch spy, so it no longer depends on the network or on the domain's real registration:

  • the IANA RDAP bootstrap list, from the bundled rdap-dns.json;
  • a recorded RDAP domain response for google.wiki.

It also asserts that the RDAP URL was actually requested, so the mock can't silently bypass the lookup.

Verification

  • bun test test/backend-test/domain.test.ts: 17 pass, 0 fail.
  • bun run build:frontend && bun run test:backend: 442 pass, 15 skip, 0 fail; auth integration 13 pass; maintenance integration 9 pass.
  • bun run lint: no errors (existing warnings only).

The test looked up google.wiki over the network and expected a fixed expiry
date. The domain was renewed, so CI on main has failed since 2026-11-19.
Serve recorded IANA and RDAP answers instead so the test runs offline.
@Igloczek
Igloczek merged commit 70f755f into main Nov 21, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant