Skip to content

tests(refactor): Adjust mail_tls_dhparams.bats#2994

Merged
polarathene merged 4 commits intodocker-mailserver:masterfrom
polarathene:tests/migrate-dh-params
Jan 11, 2023
Merged

tests(refactor): Adjust mail_tls_dhparams.bats#2994
polarathene merged 4 commits intodocker-mailserver:masterfrom
polarathene:tests/migrate-dh-params

Conversation

@polarathene
Copy link
Copy Markdown
Member

Description

  • Refactored this test to the new test structure. Logic remains the same, just easier to grok.
  • ONE_DIR handling was removed for this feature in Sep 2021, dropping those redundant test cases.

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • New and existing unit tests pass locally with my changes

There is no longer special handling for this ENV with this feature, these variant test cases serve no value.
Converted to new common setup helper methods and testing structure.

No `setup_file` needed. Only two test cases used now, the Mozilla check is bundled into the default params test case where it's relevant.

Refactored some logic into common functions. Should be easier to grok intention.
@polarathene polarathene added area/tests kind/improvement Improve an existing feature, configuration file or the documentation labels Jan 11, 2023
@polarathene polarathene added this to the v12.0.0 milestone Jan 11, 2023
@polarathene polarathene self-assigned this Jan 11, 2023
Comment thread test/tests/serial/mail_tls_dhparams.bats Outdated
Copy link
Copy Markdown
Member

@georglauterbach georglauterbach left a comment

Choose a reason for hiding this comment

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

Just the one comment; otherwise LGTM 👍🏼

Comment thread test/tests/serial/mail_tls_dhparams.bats Outdated
Copy link
Copy Markdown
Member

@georglauterbach georglauterbach left a comment

Choose a reason for hiding this comment

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

LGTM 👍🏼

@polarathene polarathene merged commit 0ecb647 into docker-mailserver:master Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/tests kind/improvement Improve an existing feature, configuration file or the documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants