mirror of
https://github.com/suitenumerique/people.git
synced 2026-08-17 21:25:52 +02:00
🐛(dimail) fix trailing slash
Trailing slash are the worst. This caused dimail api to fail miserably.
This commit is contained in:
committed by
Marie
parent
e8dda0557c
commit
da44279425
@@ -68,4 +68,5 @@ MbyqKyC6DAzv4jEEhHaN7oY=
|
||||
"
|
||||
|
||||
# INTEROP
|
||||
WEBMAIL_URL = "https://webmail.fr"
|
||||
MAIL_PROVISIONING_API_CREDENTIALS="bGFfcmVnaWU6cGFzc3dvcmQ=" # Dev and test key for dimail interop
|
||||
|
||||
@@ -171,7 +171,7 @@ def test_api_mailboxes__login_link_connexion_failed(dimail_token_ok): # pylint:
|
||||
# token response in fixtures
|
||||
responses.add(
|
||||
responses.POST,
|
||||
f"{dimail_url}/domains/{mail_domain.name}/mailboxes/{mailbox.local_part}/code/",
|
||||
f"{dimail_url}/domains/{mail_domain.name}/mailboxes/{mailbox.local_part}/code",
|
||||
body=ConnectionError(),
|
||||
)
|
||||
|
||||
|
||||
@@ -386,7 +386,7 @@ class DimailAPIClient:
|
||||
|
||||
try:
|
||||
response = session.post(
|
||||
f"{self.API_URL}/domains/{mailbox.domain.name}/mailboxes/{mailbox.local_part}/code/",
|
||||
f"{self.API_URL}/domains/{mailbox.domain.name}/mailboxes/{mailbox.local_part}/code",
|
||||
json={"expires_in": 3600, "maxuse": 1},
|
||||
headers=self._get_headers(),
|
||||
verify=True,
|
||||
|
||||
Reference in New Issue
Block a user