Skip to content

stages/email: fix test_email ignoring the given stage - #25166

Merged
melizeche merged 2 commits into
mainfrom
fix/test_email
Aug 18, 2026
Merged

melizeche merged 2 commits into
mainfrom
fix/test_email

Conversation

@melizeche

Copy link
Copy Markdown
Member

ak test_email -S <stage> has sent with global settings since 2025.4.0. send_mail gained a stage_class_path argument in #13256 and the command was never updated, so stage.pk landed in the wrong parameter.

Also drops the temp stage created for the no -S case, since send_mail already falls back to global settings on its own.

Closes #14033


Checklist

  • The project has been linted, built, and tested (make all)
  • The documentation has been updated and formatted (make docs)

@melizeche
melizeche requested a review from a team as a code owner August 17, 2026 23:36
@netlify

netlify Bot commented Aug 17, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-integrations ready!

Name Link
🔨 Latest commit 2fb9993
🔍 Latest deploy log https://app.netlify.com/projects/authentik-integrations/deploys/6a8466700607640007eed35c
😎 Deploy Preview https://deploy-preview-25166--authentik-integrations.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Aug 17, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit 2fb9993
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6a846670dc0a7d00083a8fc1
😎 Deploy Preview https://deploy-preview-25166--authentik-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@codecov

codecov Bot commented Aug 17, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.51%. Comparing base (c47570f) to head (2fb9993).
⚠️ Report is 2 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #25166      +/-   ##
==========================================
+ Coverage   90.93%   91.51%   +0.58%     
==========================================
  Files        1151     1151              
  Lines       73090    73091       +1     
  Branches     3889     3889              
==========================================
+ Hits        66465    66891     +426     
+ Misses       6589     6164     -425     
  Partials       36       36              
Flag Coverage Δ
conformance 34.49% <0.00%> (+<0.01%) ⬆️
e2e 39.15% <0.00%> (?)
integration 30.63% <0.00%> (-0.45%) ⬇️
rust 39.21% <ø> (ø)
unit 93.19% <100.00%> (+<0.01%) ⬆️
unit-migrate 93.21% <100.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@melizeche melizeche self-assigned this Aug 18, 2026
@melizeche melizeche added backport/version-2026.5 Add this label to PRs to backport changes to version-2026.5 backport/version-2026.8 Add this label to PRs to backport changes to version-2026.8 labels Aug 18, 2026
@github-project-automation github-project-automation Bot moved this from Todo to In Progress in authentik Core Aug 18, 2026
@melizeche
melizeche merged commit 02153b5 into main Aug 18, 2026
236 of 239 checks passed
@melizeche
melizeche deleted the fix/test_email branch August 18, 2026 15:22
@github-project-automation github-project-automation Bot moved this from In Progress to Done in authentik Core Aug 18, 2026
@authentik-cherry-pick

Copy link
Copy Markdown
Contributor

🍒 Cherry-pick to version-2026.5 created: #25189

@authentik-cherry-pick

Copy link
Copy Markdown
Contributor

🍒 Cherry-pick to version-2026.8 created: #25190

BeryJu added a commit that referenced this pull request Aug 18, 2026
…5166 to version-2026.8) (#25190)

stages/email: fix test_email ignoring the given stage (#25166)

fix test_email ignoring the given stage

Co-authored-by: Marcelo Elizeche Landó <[email protected]>
Co-authored-by: Jens L. <[email protected]>
melizeche added a commit that referenced this pull request Aug 18, 2026
…5166 to version-2026.5) (#25189)

stages/email: fix test_email ignoring the given stage (#25166)

fix test_email ignoring the given stage

Co-authored-by: Marcelo Elizeche Landó <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport/version-2026.5 Add this label to PRs to backport changes to version-2026.5 backport/version-2026.8 Add this label to PRs to backport changes to version-2026.8

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

ak test_mail ignores stage settings

2 participants