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

Update obsolete unit test #218

Conversation

marc-vanderwal
Copy link
Contributor

Purpose

This PR updates a unit test in Zonemaster-LDNS made obsolete by a change in the MX resource record set of iis.se. As a consequence, running TEST_WITH_NETWORK=1 make test always failed.

I tried to retain the spirit of the original test by picking another domain with 2 MX records with non-zero preference values and whose MX records have a reasonable expectation of stability.

Context

Preparation of #217.

Changes

  • Change unit test in Zonemaster-LDNS to query MX records for zonemaster.fr instead of iis.se.

How to test this PR

Run TEST_WITH_NETWORK=1 make test. Unit tests should pass.

Merge master into develop (Zonemaster-LDNS)
Running make test with TEST_WITH_NETWORK=1 in the environment fails
because the mail exchange (MX) records for iis.se were changed. Now,
it’s a single record of preference 0 pointing to something within the
“microsoft” TLD.

I tried to retain the spirit of the original test by picking another
domain with 2 MX records with non-zero preference values and whose MX
records have a reasonable expectation of stability.
@marc-vanderwal marc-vanderwal force-pushed the update-obsolete-unit-test branch from 1ac9085 to 2d45e56 Compare January 29, 2025 09:15
tgreenx
tgreenx previously approved these changes Jan 29, 2025
@tgreenx tgreenx added the V-Patch Versioning: The change gives an update of patch in version. label Jan 29, 2025
@matsduf matsduf modified the milestones: v2025.1, v2024.2.2 Mar 5, 2025
matsduf
matsduf previously approved these changes Mar 12, 2025
@marc-vanderwal marc-vanderwal changed the base branch from develop to release/v2024.2.2 March 13, 2025 08:51
@marc-vanderwal marc-vanderwal dismissed stale reviews from matsduf and tgreenx March 13, 2025 08:51

The base branch was changed.

@marc-vanderwal
Copy link
Contributor Author

Changing base branch, because we set the milestone to v2024.2.2. Can I have new approvals please? 🙂

@marc-vanderwal marc-vanderwal merged commit 8eebac3 into zonemaster:release/v2024.2.2 Mar 17, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
V-Patch Versioning: The change gives an update of patch in version.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants