Skip to content

Commit

Permalink
snow: fix messaging
Browse files Browse the repository at this point in the history
  • Loading branch information
drjova committed Feb 27, 2024
1 parent 741bacc commit 1d12373
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion inspirehep/modules/workflows/tasks/submission.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ def close_snow_ticket(obj, ticket_id, context_factory, template=None):
data = {"ticket_id": str(ticket_id)}
reason = obj.extra_data.get("reason")
if reason:
data["reason"] = reason
data["message"] = reason

response = requests.post(
"{inspirehep_url}/tickets/resolve".format(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def test_close_ticket_calls_snow_resolve(workflow_app):
_close_ticket = close_ticket()
_close_ticket(obj, None)
assert (
request_mocker.request_history[0]._request.body == '{"ticket_id": "1"}'
request_mocker.request_history[0]._request.body == '{"ticket_id": "1", "message": "reply reason"}'
)


Expand Down

0 comments on commit 1d12373

Please sign in to comment.