Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

Refactor test helpers #58

Merged
merged 3 commits into from
May 22, 2024
Merged

Refactor test helpers #58

merged 3 commits into from
May 22, 2024

Conversation

justahero
Copy link
Collaborator

This PR refactors a few small things to hopefully improve readability of the tests somewhat.

Often a pair of fqdn & ipv4_addr for a given name server are used to set up A records, therefore a method in NameServer can be used instead to produce this record. Similar the root hint can be returned from a NameServer.

  • add another referral method to link name servers

Copy link
Collaborator

@japaric japaric left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

justahero added 3 commits May 22, 2024 18:49
A NameServer can now return the `Record::A` entry for itself.
This adds a function to `NameServer` to return root hints.
@japaric japaric force-pushed the refactor-test-helpers branch from b0f6614 to 0ea1397 Compare May 22, 2024 17:01
@japaric japaric merged commit 0ba63a1 into main May 22, 2024
1 check passed
@japaric japaric deleted the refactor-test-helpers branch May 22, 2024 17:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants