✨(plugin) add CommuneCreation plugin
Fix earlier test that was in error
This commit is contained in:
committed by
Laurent Bossavit
parent
57fd15100e
commit
87907d57de
@@ -137,10 +137,10 @@ class CommuneCreation(BaseOrganizationPlugin):
|
|||||||
create_domain.base = settings.MAIL_PROVISIONING_API_URL
|
create_domain.base = settings.MAIL_PROVISIONING_API_URL
|
||||||
create_domain.url = "/domains"
|
create_domain.url = "/domains"
|
||||||
create_domain.params = {
|
create_domain.params = {
|
||||||
"name": inputs["name"],
|
"name": f"{inputs["name"]}.collectivite.fr",
|
||||||
"delivery": "virtual",
|
"delivery": "virtual",
|
||||||
"features": ["webmail","mailbox"],
|
"features": ["webmail","mailbox"],
|
||||||
"context_name": inputs["name"],
|
"context_name": f"{inputs["name"]}.collectivite.fr",
|
||||||
}
|
}
|
||||||
create_domain.headers = {
|
create_domain.headers = {
|
||||||
"Authorization": f"Basic: {settings.MAIL_PROVISIONING_API_CREDENTIALS}"
|
"Authorization": f"Basic: {settings.MAIL_PROVISIONING_API_CREDENTIALS}"
|
||||||
|
|||||||
@@ -88,10 +88,10 @@ def test_tasks_on_commune_creation_include_dimail_domain_creation():
|
|||||||
assert tasks[1].url == "/domains"
|
assert tasks[1].url == "/domains"
|
||||||
assert tasks[1].method == "POST"
|
assert tasks[1].method == "POST"
|
||||||
assert tasks[1].params == {
|
assert tasks[1].params == {
|
||||||
"name": "merlaut",
|
"name": "merlaut.collectivite.fr",
|
||||||
"delivery": "virtual",
|
"delivery": "virtual",
|
||||||
"features": ["webmail", "mailbox"],
|
"features": ["webmail", "mailbox"],
|
||||||
"context_name": "merlaut",
|
"context_name": "merlaut.collectivite.fr",
|
||||||
}
|
}
|
||||||
assert (
|
assert (
|
||||||
tasks[1].headers["Authorization"]
|
tasks[1].headers["Authorization"]
|
||||||
|
|||||||
Reference in New Issue
Block a user