Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix breakage in Backend tests #1068

Merged
merged 1 commit into from
May 18, 2022

Conversation

mattias-p
Copy link
Member

Purpose

Context

Fixes a bug that was introduced in #1045.

Changes

Makes undef an alias for [] in the arguments to add_fake_delegation().

How to test this PR

Run the Backend unit tests using this version of Engine.

@mattias-p mattias-p changed the title Accept undef as well as empty arrayref Fix breakage in Backend tests May 18, 2022
@mattias-p mattias-p added this to the v2022.1 milestone May 18, 2022
@@ -323,6 +324,8 @@ This method adds some fake delegation information to the system.
The arguments are a domain name, and a hashref with delegation information.
The keys in the hash are nameserver names, and the values are arrayrefs of IP
addresses for their corresponding nameserver.
Alternatively the IP addresses may be specified as an `undef` which is handled
the same as an empty arrayref.
Copy link
Contributor

Choose a reason for hiding this comment

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

Is "empty arrayref" correct in strict meaning? Shouldn't it be "reference to an empty array"?

@mattias-p mattias-p merged commit b146379 into zonemaster:develop May 18, 2022
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.

None yet

3 participants