domain migration
This commit is contained in:
parent
192b810eb4
commit
c04a6ce6fe
26 changed files with 777 additions and 125 deletions
|
|
@ -9,7 +9,7 @@ from app.services.raw_mime_storage import StoredMime
|
|||
|
||||
RAW = (
|
||||
b"From: Sender <sender@example.com>\r\n"
|
||||
b"To: user@getall.help\r\n"
|
||||
b"To: user@gentic.email\r\n"
|
||||
b"Subject: Hello\r\n\r\n"
|
||||
b"Retry safe body\r\n"
|
||||
)
|
||||
|
|
@ -57,9 +57,9 @@ class FakeSession:
|
|||
def envelope(raw=RAW):
|
||||
return SimpleNamespace(
|
||||
original_content=raw,
|
||||
rcpt_tos=["user@getall.help"],
|
||||
rcpt_tos=["user@gentic.email"],
|
||||
mail_from="sender@example.com",
|
||||
account_ids={"user@getall.help": "account-1"},
|
||||
account_ids={"user@gentic.email": "account-1"},
|
||||
)
|
||||
|
||||
|
||||
|
|
@ -72,7 +72,7 @@ async def test_rcpt_rejects_unknown_account(monkeypatch):
|
|||
None,
|
||||
None,
|
||||
target,
|
||||
"missing@getall.help",
|
||||
"missing@gentic.email",
|
||||
[],
|
||||
)
|
||||
|
||||
|
|
@ -95,8 +95,8 @@ async def test_rcpt_accepts_account_and_tracks_owner(monkeypatch):
|
|||
)
|
||||
|
||||
assert response.startswith("250 2.1.5")
|
||||
assert target.rcpt_tos == ["user@getall.help"]
|
||||
assert target.account_ids == {"user@getall.help": "account-1"}
|
||||
assert target.rcpt_tos == ["user@gentic.email"]
|
||||
assert target.account_ids == {"user@gentic.email": "account-1"}
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue