mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-22 08:21:13 -05:00
Update info log to waring.
Removed duplicate test
This commit is contained in:
@@ -58,7 +58,7 @@ def process_sms_client_response(status, reference, client_name):
|
|||||||
# record stats
|
# record stats
|
||||||
notification = notifications_dao.update_notification_status_by_id(reference, notification_status)
|
notification = notifications_dao.update_notification_status_by_id(reference, notification_status)
|
||||||
if not notification:
|
if not notification:
|
||||||
current_app.logger.info("{} callback failed: notification {} either not found or already updated "
|
current_app.logger.warning("{} callback failed: notification {} either not found or already updated "
|
||||||
"from sending. Status {}".format(client_name,
|
"from sending. Status {}".format(client_name,
|
||||||
reference,
|
reference,
|
||||||
notification_status_message))
|
notification_status_message))
|
||||||
|
|||||||
@@ -389,15 +389,6 @@ def test_process_mmg_response_returns_400_for_malformed_data(client):
|
|||||||
assert "{} callback failed: {} missing".format('MMG', 'CID') in json_data['message']
|
assert "{} callback failed: {} missing".format('MMG', 'CID') in json_data['message']
|
||||||
|
|
||||||
|
|
||||||
def test_ses_callback_should_not_need_auth(client):
|
|
||||||
response = client.post(
|
|
||||||
path='/notifications/email/ses',
|
|
||||||
data=ses_notification_callback(),
|
|
||||||
headers=[('Content-Type', 'text/plain; charset=UTF-8')]
|
|
||||||
)
|
|
||||||
assert response.status_code == 404
|
|
||||||
|
|
||||||
|
|
||||||
def test_mmg_callback_returns_200_when_notification_id_not_found_or_already_updated(client):
|
def test_mmg_callback_returns_200_when_notification_id_not_found_or_already_updated(client):
|
||||||
data = '{"reference": "10100164", "CID": "send-sms-code", "MSISDN": "447775349060", "status": "3", \
|
data = '{"reference": "10100164", "CID": "send-sms-code", "MSISDN": "447775349060", "status": "3", \
|
||||||
"deliverytime": "2016-04-05 16:01:07"}'
|
"deliverytime": "2016-04-05 16:01:07"}'
|
||||||
|
|||||||
Reference in New Issue
Block a user