mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-20 14:29:51 -04:00
Pass service domain to api when adding a new service
We need to pass the domain to api when adding a service so that api can link the domain of the service with a letter brand.
This commit is contained in:
@@ -625,6 +625,7 @@ def mock_create_service(mocker):
|
||||
restricted,
|
||||
user_id,
|
||||
email_from,
|
||||
service_domain,
|
||||
):
|
||||
service = service_json(
|
||||
101, service_name, [user_id], message_limit=message_limit, restricted=restricted, email_from=email_from)
|
||||
@@ -643,6 +644,7 @@ def mock_create_duplicate_service(mocker):
|
||||
restricted,
|
||||
user_id,
|
||||
email_from,
|
||||
service_domain,
|
||||
):
|
||||
json_mock = Mock(return_value={'message': {'name': ["Duplicate service name '{}'".format(service_name)]}})
|
||||
resp_mock = Mock(status_code=400, json=json_mock)
|
||||
|
||||
Reference in New Issue
Block a user