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 ns argument #1147

Merged
merged 1 commit into from
Jan 23, 2024
Merged

Fix ns argument #1147

merged 1 commit into from
Jan 23, 2024

Conversation

mattias-p
Copy link
Member

Purpose

This PR fixes a bug in get_test_results. The RPCAPI reference specifies that ns arguments should sometimes be included in the results, but this functionality was broken since last release.

Context

The bug was introduced in #1092 and discovered while testing #1145.
The cause of the bug is that the database schema was changed to use capitalized names instead of uppercase module names, and get_test_results was not updated accordingly.

Changes

This PR updates get_test_results to understand the new database schema.

How to test this PR

Run zmtest se and see that all entries from the Nameserver module include an ns argument.

@mattias-p mattias-p added this to the v2023.2 milestone Jan 18, 2024
@mattias-p mattias-p changed the base branch from master to develop January 18, 2024 16:36
@mattias-p mattias-p added T-Bug Type: Bug in software or error in test case description and removed T-Bug Type: Bug in software or error in test case description labels Jan 18, 2024
@mattias-p mattias-p marked this pull request as ready for review January 18, 2024 16:38
The database schema was updated to store capitalized module names
instead of uppercase module names. Here we make get_test_results
understand the new format.
@mattias-p mattias-p added the T-Bug Type: Bug in software or error in test case description label Jan 23, 2024
@mattias-p mattias-p merged commit bff4c19 into zonemaster:develop Jan 23, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Bug Type: Bug in software or error in test case description
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants