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

tests: Extract setup.sh cases to their own test file #2629

Conversation

polarathene
Copy link
Member

@polarathene polarathene commented Jun 7, 2022

Description

As part of a race condition observed here that would reliably trigger on CI, but not a local VM; these tests were impacting unrelated subsequent tests for supervisord due to change detection service now being activated as part of that PR. (EDIT: Additional test runs failed other tests inbetween these two as well that relied on Postfix not being down temporarily)

To avoid that issue, the tests have been extracted into their own one.

Staged out into several commits (with commit messages for additional context) for ease of review diff viewing..

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • Improvement (non-breaking change that does improve existing functionality)

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

Bare minimum to setup a new test.
Only applied where it's relevant. Next commit will handle the config path correction.
Could technically use the existing function call. Some paths were using a hard-coded config location.

Both have been converted to `TEST_TMP_CONFIG` and related `grep` calls normalizing the quote mark usage, escaping doesn't seem necessary.
@polarathene polarathene added area/ci area/tests kind/improvement Improve an existing feature, configuration file or the documentation kind/bugfix labels Jun 7, 2022
@polarathene polarathene added this to the v11.1.0 milestone Jun 7, 2022
@polarathene polarathene self-assigned this Jun 7, 2022
If a variable name (of an array) was not provided to reference, this would fail trying to reference `'`.
@polarathene polarathene enabled auto-merge (squash) June 7, 2022 22:06
@polarathene polarathene merged commit 4b37cb5 into docker-mailserver:master Jun 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ci 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.

None yet

3 participants