-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#2014 - Add callback url to GET and POST requests #2029
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@k-macmillan Yikes! I missed this during #1436. Tests should be using the sample_notification
fixture and not using create_notification
. I'm not asking Mack to change that for this ticket.
'callback_url', | ||
[ | ||
('invalid-url', 'is not a valid URI.'), | ||
('htp://wrongformat.com', 'does not match ^https.*'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you mean to test "http"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I put htp
but http
makes more sense.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated.
Co-authored-by: David Kalbfleisch <[email protected]>
Co-authored-by: David Kalbfleisch <[email protected]>
Co-authored-by: David Kalbfleisch <[email protected]>
Co-authored-by: David Kalbfleisch <[email protected]>
Co-authored-by: David Kalbfleisch <[email protected]>
|
||
assert resp_json['id'] == str(notification.id) | ||
assert resp_json['content']['body'] == template.content.replace('(( Name))', 'Jo') | ||
assert 'callback_url' not in resp_json or resp_json['callback_url'] is None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
callback_url
should always be in the response?
shouldn't we just check for resp_json['callback_url'] is None
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ops - Yes that should be just resp_json['callback_url'] is None
Updated.
callback_url
value to response in related GET and POST notifications request.callback_url
in body of POST request, update value in DB.htttps_url
schema because of impact on POST to ServiceCallbackDescription
issue #2014
How Has This Been Tested?
Tested in Postman and confirmed that
callback_url
can be added to the Notification ObjectPOST Notification SMS
GET Notification
POST Notification Email
POST Notification Validation Errors
Checklist