Skip to content

tests: Decode emails before snapshotting them in emails_snapshot() fn #11296

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

Merged
merged 1 commit into from
Jun 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ diesel = { version = "=2.2.10", features = ["r2d2"] }
googletest = "=0.14.1"
insta = { version = "=1.43.1", features = ["glob", "json", "redactions"] }
jsonwebtoken = "=9.3.1"
quoted_printable = "=0.5.1"
regex = "=1.11.1"
sentry = { version = "=0.38.1", features = ["test"] }
tokio = "=1.45.1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,9 @@ Content-Transfer-Encoding: quoted-printable

Hello foo!

A new version of the package foo (1.0.0) was published by your account (htt=
ps://crates.io/users/foo) at [0000-00-00T00:00:00Z].
A new version of the package foo (1.0.0) was published by your account (https://crates.io/users/foo) at [0000-00-00T00:00:00Z].

If you have questions or security concerns, you can contact us at help@crat=
es.io. If you would like to stop receiving these security notifications, yo=
u can disable them in your account settings.
If you have questions or security concerns, you can contact us at [email protected]. If you would like to stop receiving these security notifications, you can disable them in your account settings.
----------------------------------------

To: [email protected]
Expand All @@ -28,5 +25,4 @@ Hi foo,

Your "foo" crate has been deleted, per your request.

If you did not initiate this deletion, your account may have been compromis=
ed. Please contact us at [email protected].
If you did not initiate this deletion, your account may have been compromised. Please contact us at [email protected].
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,9 @@ Content-Transfer-Encoding: quoted-printable

Hello foo!

A new version of the package foo (1.0.0) was published by your account (htt=
ps://crates.io/users/foo) at [0000-00-00T00:00:00Z].
A new version of the package foo (1.0.0) was published by your account (https://crates.io/users/foo) at [0000-00-00T00:00:00Z].

If you have questions or security concerns, you can contact us at help@crat=
es.io. If you would like to stop receiving these security notifications, yo=
u can disable them in your account settings.
If you have questions or security concerns, you can contact us at [email protected]. If you would like to stop receiving these security notifications, you can disable them in your account settings.
----------------------------------------

To: [email protected]
Expand All @@ -28,5 +25,4 @@ Hi foo,

Your "foo" crate has been deleted, per your request.

If you did not initiate this deletion, your account may have been compromis=
ed. Please contact us at [email protected].
If you did not initiate this deletion, your account may have been compromised. Please contact us at [email protected].
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,9 @@ Content-Transfer-Encoding: quoted-printable

Hello foo!

A new version of the package foo (1.0.0) was published by your account (htt=
ps://crates.io/users/foo) at [0000-00-00T00:00:00Z].
A new version of the package foo (1.0.0) was published by your account (https://crates.io/users/foo) at [0000-00-00T00:00:00Z].

If you have questions or security concerns, you can contact us at help@crat=
es.io. If you would like to stop receiving these security notifications, yo=
u can disable them in your account settings.
If you have questions or security concerns, you can contact us at [email protected]. If you would like to stop receiving these security notifications, you can disable them in your account settings.
----------------------------------------

To: [email protected]
Expand All @@ -28,5 +25,4 @@ Hi foo,

Your "foo" crate has been deleted, per your request.

If you did not initiate this deletion, your account may have been compromis=
ed. Please contact us at [email protected].
If you did not initiate this deletion, your account may have been compromised. Please contact us at [email protected].
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ Content-Transfer-Encoding: quoted-printable

Hello foo!

crates.io user foo has added a new "Trusted Publishing" configuration for G=
itHub Actions to a crate that you manage (foo). Trusted publishers act as t=
rusted users and can publish new versions of the crate automatically.
crates.io user foo has added a new "Trusted Publishing" configuration for GitHub Actions to a crate that you manage (foo). Trusted publishers act as trusted users and can publish new versions of the crate automatically.

Trusted Publishing configuration:

Expand All @@ -21,9 +19,6 @@ Trusted Publishing configuration:
- Workflow filename: publish.yml
- Environment: (not set)

If you did not make this change and you think it was made maliciously, you =
can remove the configuration from the crate via the "Settings" tab on the c=
rate's page.
If you did not make this change and you think it was made maliciously, you can remove the configuration from the crate via the "Settings" tab on the crate's page.

If you are unable to revert the change and need to do so, you can email hel=
[email protected] to communicate with the crates.io support team.
If you are unable to revert the change and need to do so, you can email [email protected] to communicate with the crates.io support team.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ Content-Transfer-Encoding: quoted-printable

Hello foo!

crates.io user foo has remove a "Trusted Publishing" configuration for GitH=
ub Actions from a crate that you manage (foo).
crates.io user foo has remove a "Trusted Publishing" configuration for GitHub Actions from a crate that you manage (foo).

Trusted Publishing configuration:

Expand All @@ -20,5 +19,4 @@ Trusted Publishing configuration:
- Workflow filename: publish.yml
- Environment: (not set)

If you did not make this change and you think it was made maliciously, you =
can email [email protected] to communicate with the crates.io support team.
If you did not make this change and you think it was made maliciously, you can email [email protected] to communicate with the crates.io support team.
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ Content-Transfer-Encoding: quoted-printable

Hello foo!

A new version of the package foo_new (1.0.0) was published by your account =
(https://crates.io/users/foo) at [0000-00-00T00:00:00Z].
A new version of the package foo_new (1.0.0) was published by your account (https://crates.io/users/foo) at [0000-00-00T00:00:00Z].

If you have questions or security concerns, you can contact us at help@crat=
es.io. If you would like to stop receiving these security notifications, yo=
u can disable them in your account settings.
If you have questions or security concerns, you can contact us at [email protected]. If you would like to stop receiving these security notifications, you can disable them in your account settings.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ Content-Transfer-Encoding: quoted-printable

Hello foo!

A new API token with the name "bar" was recently added to your crates.io ac=
count.
A new API token with the name "bar" was recently added to your crates.io account.

If this wasn't you, you should revoke the token immediately: https://crates=
.io/settings/tokens
If this wasn't you, you should revoke the token immediately: https://crates.io/settings/tokens
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ Content-Transfer-Encoding: quoted-printable

Hello foo!

A new API token with the name "bar" was recently added to your crates.io ac=
count.
A new API token with the name "bar" was recently added to your crates.io account.

If this wasn't you, you should revoke the token immediately: https://crates=
.io/settings/tokens
If this wasn't you, you should revoke the token immediately: https://crates.io/settings/tokens
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ Content-Transfer-Encoding: quoted-printable

Hello foo!

A new API token with the name "bar" was recently added to your crates.io ac=
count.
A new API token with the name "bar" was recently added to your crates.io account.

If this wasn't you, you should revoke the token immediately: https://crates=
.io/settings/tokens
If this wasn't you, you should revoke the token immediately: https://crates.io/settings/tokens
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ Content-Transfer-Encoding: quoted-printable

Hello foo!

A new API token with the name "bar" was recently added to your crates.io ac=
count.
A new API token with the name "bar" was recently added to your crates.io account.

If this wasn't you, you should revoke the token immediately: https://crates=
.io/settings/tokens
If this wasn't you, you should revoke the token immediately: https://crates.io/settings/tokens
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,9 @@ Content-Transfer-Encoding: quoted-printable

Hello foo!

A new version of the package foo (1.0.0) was published by your account (htt=
ps://crates.io/users/foo) at [0000-00-00T00:00:00Z].
A new version of the package foo (1.0.0) was published by your account (https://crates.io/users/foo) at [0000-00-00T00:00:00Z].

If you have questions or security concerns, you can contact us at help@crat=
es.io. If you would like to stop receiving these security notifications, yo=
u can disable them in your account settings.
If you have questions or security concerns, you can contact us at [email protected]. If you would like to stop receiving these security notifications, you can disable them in your account settings.
----------------------------------------

To: [email protected]
Expand All @@ -28,5 +25,4 @@ Hello foo!

You have been unsubscribed from publish notifications.

If you would like to resubscribe, please visit https://crates.io/settings/p=
rofile
If you would like to resubscribe, please visit https://crates.io/settings/profile
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,9 @@ Content-Transfer-Encoding: quoted-printable

Hello foo!

A new version of the package foo (1.0.0) was published by your account (htt=
ps://crates.io/users/foo) at [0000-00-00T00:00:00Z].
A new version of the package foo (1.0.0) was published by your account (https://crates.io/users/foo) at [0000-00-00T00:00:00Z].

If you have questions or security concerns, you can contact us at help@crat=
es.io. If you would like to stop receiving these security notifications, yo=
u can disable them in your account settings.
If you have questions or security concerns, you can contact us at [email protected]. If you would like to stop receiving these security notifications, you can disable them in your account settings.
----------------------------------------

To: [email protected]
Expand All @@ -28,5 +25,4 @@ Hello foo!

You have been unsubscribed from publish notifications.

If you would like to resubscribe, please visit https://crates.io/settings/p=
rofile
If you would like to resubscribe, please visit https://crates.io/settings/profile
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,9 @@ Content-Transfer-Encoding: quoted-printable

Hello foo!

A new version of the package foo (1.0.0) was published by your account (htt=
ps://crates.io/users/foo) at [0000-00-00T00:00:00Z].
A new version of the package foo (1.0.0) was published by your account (https://crates.io/users/foo) at [0000-00-00T00:00:00Z].

If you have questions or security concerns, you can contact us at help@crat=
es.io. If you would like to stop receiving these security notifications, yo=
u can disable them in your account settings.
If you have questions or security concerns, you can contact us at [email protected]. If you would like to stop receiving these security notifications, you can disable them in your account settings.
----------------------------------------

To: [email protected]
Expand All @@ -28,8 +25,7 @@ Hello foo!

You have been unsubscribed from publish notifications.

If you would like to resubscribe, please visit https://crates.io/settings/p=
rofile
If you would like to resubscribe, please visit https://crates.io/settings/profile
----------------------------------------

To: [email protected]
Expand All @@ -40,9 +36,6 @@ Content-Transfer-Encoding: quoted-printable

Hello foo!

A new version of the package foo (1.2.0) was published by your account (htt=
ps://crates.io/users/foo) at [0000-00-00T00:00:00Z].
A new version of the package foo (1.2.0) was published by your account (https://crates.io/users/foo) at [0000-00-00T00:00:00Z].

If you have questions or security concerns, you can contact us at help@crat=
es.io. If you would like to stop receiving these security notifications, yo=
u can disable them in your account settings.
If you have questions or security concerns, you can contact us at [email protected]. If you would like to stop receiving these security notifications, you can disable them in your account settings.
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ Content-Transfer-Encoding: quoted-printable

Hello foo!

A new version of the package foo (1.0.0) was published by your account (htt=
ps://crates.io/users/foo) at [0000-00-00T00:00:00Z].
A new version of the package foo (1.0.0) was published by your account (https://crates.io/users/foo) at [0000-00-00T00:00:00Z].

If you have questions or security concerns, you can contact us at help@crat=
es.io. If you would like to stop receiving these security notifications, yo=
u can disable them in your account settings.
If you have questions or security concerns, you can contact us at [email protected]. If you would like to stop receiving these security notifications, you can disable them in your account settings.
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@ Subject: crates.io: Your API token "bar" has been revoked
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

GitHub has notified us that your crates.io API token bar has been exposed p=
ublicly. We have revoked this token as a precaution.
GitHub has notified us that your crates.io API token bar has been exposed publicly. We have revoked this token as a precaution.

Please review your account at https://crates.io to confirm that no unexpect=
ed changes have been made to your settings or crates.
Please review your account at https://crates.io to confirm that no unexpected changes have been made to your settings or crates.

Source type: some_source

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@ Content-Transfer-Encoding: quoted-printable

foo has invited you to become an owner of the crate owners_multiple!

Visit https://crates.io/accept-invite/[invite-token] to accept =
this invitation,
or go to https://crates.io/me/pending-invites to manage all of your crate o=
wnership invitations.
Visit https://crates.io/accept-invite/[invite-token] to accept this invitation,
or go to https://crates.io/me/pending-invites to manage all of your crate ownership invitations.
----------------------------------------

To: [email protected]
Expand All @@ -24,10 +22,8 @@ Content-Transfer-Encoding: quoted-printable

foo has invited you to become an owner of the crate owners_multiple!

Visit https://crates.io/accept-invite/[invite-token] to accept =
this invitation,
or go to https://crates.io/me/pending-invites to manage all of your crate o=
wnership invitations.
Visit https://crates.io/accept-invite/[invite-token] to accept this invitation,
or go to https://crates.io/me/pending-invites to manage all of your crate ownership invitations.
----------------------------------------

To: [email protected]
Expand All @@ -38,10 +34,8 @@ Content-Transfer-Encoding: quoted-printable

foo has invited you to become an owner of the crate owners_multiple!

Visit https://crates.io/accept-invite/[invite-token] to accept =
this invitation,
or go to https://crates.io/me/pending-invites to manage all of your crate o=
wnership invitations.
Visit https://crates.io/accept-invite/[invite-token] to accept this invitation,
or go to https://crates.io/me/pending-invites to manage all of your crate ownership invitations.
----------------------------------------

To: [email protected]
Expand All @@ -52,7 +46,5 @@ Content-Transfer-Encoding: quoted-printable

foo has invited you to become an owner of the crate owners_multiple!

Visit https://crates.io/accept-invite/[invite-token] to accept =
this invitation,
or go to https://crates.io/me/pending-invites to manage all of your crate o=
wnership invitations.
Visit https://crates.io/accept-invite/[invite-token] to accept this invitation,
or go to https://crates.io/me/pending-invites to manage all of your crate ownership invitations.
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@ Content-Transfer-Encoding: quoted-printable

foo has invited you to become an owner of the crate owners_multiple!

Visit https://crates.io/accept-invite/[invite-token] to accept =
this invitation,
or go to https://crates.io/me/pending-invites to manage all of your crate o=
wnership invitations.
Visit https://crates.io/accept-invite/[invite-token] to accept this invitation,
or go to https://crates.io/me/pending-invites to manage all of your crate ownership invitations.
----------------------------------------

To: [email protected]
Expand All @@ -24,7 +22,5 @@ Content-Transfer-Encoding: quoted-printable

foo has invited you to become an owner of the crate owners_multiple!

Visit https://crates.io/accept-invite/[invite-token] to accept =
this invitation,
or go to https://crates.io/me/pending-invites to manage all of your crate o=
wnership invitations.
Visit https://crates.io/accept-invite/[invite-token] to accept this invitation,
or go to https://crates.io/me/pending-invites to manage all of your crate ownership invitations.
Loading