Skip to content

[WPB-18127] Move email template completeness tests from brig to wire-subsystems. - #5429

Merged
fisx merged 2 commits into
developfrom
WPB-18127-move-email-template-completeness-tests-from-brig-to-wire-subsystems
Aug 11, 2026
Merged

[WPB-18127] Move email template completeness tests from brig to wire-subsystems.#5429
fisx merged 2 commits into
developfrom
WPB-18127-move-email-template-completeness-tests-from-brig-to-wire-subsystems

Conversation

@fisx

@fisx fisx commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Refactoring PR for making #5243 easier to implement.

What can be run as unit test should not be run as integration test. Rendering email templates is clearly unit-testable, so I moved /services/brig/test/integration/API/Template.hs to /libs/wire-subsystems/test/unit/Wire/EmailSubsystem/. Prior art: /libs/wire-subsystems/test/unit/Wire/SAMLEmailSubsystem/InterpreterSpec.hs, from which I moved some code into a new fixtures module; loadTeamTemplates, which inspired loadUserTemplates.

https://wearezeta.atlassian.net/browse/WPB-18127

Checklist

  • Add a new entry in an appropriate subdirectory of changelog.d
  • Read and follow the PR guidelines

@zebot zebot added the ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist label Aug 10, 2026
@fisx
fisx force-pushed the WPB-18127-move-email-template-completeness-tests-from-brig-to-wire-subsystems branch from 6a4d6a3 to dba85a1 Compare August 11, 2026 07:26
@fisx

fisx commented Aug 11, 2026

Copy link
Copy Markdown
Contributor Author

I wonder if we should also git mv Wire/SAMLEmailSubsystem* Wire/EmailSubsystem/ in /libs/wire-subsystem/{src,test/unit}?

@fisx
fisx marked this pull request as ready for review August 11, 2026 07:26
@fisx
fisx requested review from a team as code owners August 11, 2026 07:26
@fisx
fisx force-pushed the WPB-18127-move-email-template-completeness-tests-from-brig-to-wire-subsystems branch from dba85a1 to 9129f3a Compare August 11, 2026 07:52
@fisx
fisx merged commit efd88af into develop Aug 11, 2026
8 checks passed
@fisx
fisx deleted the WPB-18127-move-email-template-completeness-tests-from-brig-to-wire-subsystems branch August 11, 2026 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants