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

Cleanup in Syntax test module #1293

Merged
merged 1 commit into from
Oct 10, 2023
Merged

Conversation

tgreenx
Copy link
Contributor

@tgreenx tgreenx commented Sep 19, 2023

Purpose

This PR proposes an update to the Syntax test module. See Changes section below.

Context

Fixes #1283 and #1274

Changes

  • Remove internal helper function _get_name()
  • Correct return value in Syntax08
  • Correct POD typo in link for Syntax04

How to test this PR

Tests should pass.

Also, there should now be a TEST_CASE_END message for Syntax08 once it finishes:

$ zonemaster-cli --show-testcase --test=syntax --level=debug --no-ipv6 --raw 'zonemaster.net' | grep TEST_CASE_
   0.00 DEBUG    SYNTAX01       TEST_CASE_START   testcase=syntax01
   0.00 DEBUG    SYNTAX01       TEST_CASE_END   testcase=syntax01
   0.00 DEBUG    SYNTAX02       TEST_CASE_START   testcase=syntax02
   0.00 DEBUG    SYNTAX02       TEST_CASE_END   testcase=syntax02
   0.00 DEBUG    SYNTAX03       TEST_CASE_START   testcase=syntax03
   0.00 DEBUG    SYNTAX03       TEST_CASE_END   testcase=syntax03
   1.03 DEBUG    SYNTAX04       TEST_CASE_START   testcase=syntax04
   1.03 DEBUG    SYNTAX04       TEST_CASE_END   testcase=syntax04
   1.03 DEBUG    SYNTAX04       TEST_CASE_START   testcase=syntax04
   1.03 DEBUG    SYNTAX04       TEST_CASE_END   testcase=syntax04
   1.03 DEBUG    SYNTAX04       TEST_CASE_START   testcase=syntax04
   1.03 DEBUG    SYNTAX04       TEST_CASE_END   testcase=syntax04
   1.03 DEBUG    SYNTAX04       TEST_CASE_START   testcase=syntax04
   1.03 DEBUG    SYNTAX04       TEST_CASE_END   testcase=syntax04
   1.03 DEBUG    SYNTAX05       TEST_CASE_START   testcase=syntax05
   1.03 DEBUG    SYNTAX05       TEST_CASE_END   testcase=syntax05
   1.03 DEBUG    SYNTAX06       TEST_CASE_START   testcase=syntax06
   1.46 DEBUG    SYNTAX06       TEST_CASE_END   testcase=syntax06
   1.46 DEBUG    SYNTAX07       TEST_CASE_START   testcase=syntax07
   1.46 DEBUG    SYNTAX07       TEST_CASE_END   testcase=syntax07
   1.46 DEBUG    SYNTAX08       TEST_CASE_START   testcase=syntax08
   1.47 DEBUG    SYNTAX08       TEST_CASE_END   testcase=syntax08

@tgreenx tgreenx added A-TestCase Area: Test case specification or implementation of test case V-Minor Versioning: The change gives an update of minor in version. labels Sep 19, 2023
@tgreenx tgreenx added this to the v2023.2 milestone Sep 19, 2023
@tgreenx tgreenx linked an issue Sep 19, 2023 that may be closed by this pull request
- Remove internal helper function '_get_name()'
- Correct return value in Syntax08
- Correct POD typo in link for Syntax04
@tgreenx tgreenx linked an issue Sep 20, 2023 that may be closed by this pull request
@tgreenx tgreenx merged commit 5fd6423 into zonemaster:develop Oct 10, 2023
3 checks passed
@tgreenx tgreenx deleted the cleanup-syntax branch October 10, 2023 14:09
@marc-vanderwal
Copy link
Contributor

Release testing report – No issues found

Rocky Linux 9.3

Unit tests pass.

I can see, by reading the perldoc documentation for Zonemaster::Engine::Test::Syntax, that the link in the description of the syntax04 method is correct.

I also see that Syntax08 has a TEST_CASE_END message. I get a slightly different output than what is shown in the testing procedure: test case names have the form Syntax<number> instead of SYNTAX<number>. I assume this is a side-effect of merging #1302.

@marc-vanderwal marc-vanderwal added the S-ReleaseTested Status: The PR has been successfully tested in release testing label Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-TestCase Area: Test case specification or implementation of test case S-ReleaseTested Status: The PR has been successfully tested in release testing V-Minor Versioning: The change gives an update of minor in version.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cleanup in Syntax module Syntax08 erroneous return value
3 participants