-
Notifications
You must be signed in to change notification settings - Fork 23
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
Add ClientState and tests #40
Conversation
I had to copy the definition of the |
@MatthewDorner We can create a mock of |
Never mind, I guess I didn't even need that field for my test. |
Should I also be using EDIT: Or |
@MatthewDorner I would say that you don't need to mock it unless you want to check the logger's output. This can cause brittle tests that need to be unnecessarily updated if there are more logging additions later. I think the difference between |
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.
@MatthewDorner Great job on implementing this! No functional issues found, mostly just some suggestions on tests.
Anything else needed for this PR? I believe all requested changes should be addressed. |
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.
@MatthewDorner Thanks for addressing the testing concerns, LGTM!
@DHaussermann Testing here will be a smoke test for setting up a subscription and verifying that we can successfully process a notification. |
/update-branch |
@DHaussermann I think we're good to merge this and test on master |
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.
Agreed. Thanks @mickmister
This can be covered with smoke testing post merge.
Summary
ClientState
when creating a new subscriptionClientState
is checked for incoming webhooksmscalendar/notification.go
involving conditional call toMakeClient
Ticket Link
Fixes #13