Repository navigation
test: use recorded RDAP data in domain expiry test - #199
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
CI on
mainhas 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 upgoogle.wikiover the network and expected an expiry of exactly2026-11-26T23:59:59Z. Google renewed the domain, so the lookup now returns2027-11-26.Fix
The test serves recorded answers through a scoped
fetchspy, so it no longer depends on the network or on the domain's real registration:rdap-dns.json;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).