Skip to content
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

OOB Sender validation tweaks #130

Merged
merged 4 commits into from
Apr 19, 2017
Merged

OOB Sender validation tweaks #130

merged 4 commits into from
Apr 19, 2017

Conversation

jrgp
Copy link
Member

@jrgp jrgp commented Apr 19, 2017

Make OOB sending more stringent and add tests

Address #128

  • Add tests which confirm that specifying invalid role/target 400.

  • Log the sender reject message in the API logs so we can easier debug
    this without needing to dig into sender logs.

  • Add checks in notifications endpoint that require either body
    or a template to be specified, as without both the message will
    not be able to be generate and then sent.

  • Also fix quota logging

- Add tests which confirm that specifying invalid role/target 400.

- Log the sender reject message in the API logs so we can easier debug
  this without needing to dig into sender logs.

- Add checks in notifications endpoint that require either body
  or a template to be specified, as without both the message will
  not be able to be generate and then sent.
This way we can test against obviously bad roles like fakerol123
@jrgp jrgp changed the title Sender tweaks OOB Sender validation tweaks Apr 19, 2017
@houqp houqp merged commit 3b66d3c into linkedin:master Apr 19, 2017
@jrgp jrgp deleted the sender_tweaks branch April 24, 2017 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants