-
Notifications
You must be signed in to change notification settings - Fork 12
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
Remove unsupported webhook fields #75
Conversation
This is not used anymore, and does not with with OTP 26.
These will otherwise interfere with the tests.
@@ -396,7 +396,7 @@ get_webhooks_pre(S) -> | |||
get_webhooks_post(S, _Args, {ok, WebHooks0}) -> | |||
Generated = [id, createdDate, updatedDate], | |||
Webhooks = [lists:foldl(fun maps:remove/2, WH, Generated)|| WH <- WebHooks0], | |||
?assertEqual(lists:sort(Webhooks), lists:sort(maps:get(webhooks, S))), | |||
?assertEqual(lists:sort(maps:get(webhooks, S)), lists:sort(Webhooks)), |
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.
Why?
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.
To make the error message make more sense, since the left is the "expected" value and the right the "actual" value.
, <<"events">> => lists:sort(Events) | ||
}). | ||
Map0 = maps:remove(<<"sslVerificationRequired">>, Map), | ||
Map1 = maps:remove(<<"scopeType">>, Map0), |
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 have a feeling this might come back and bite us in prod. And given BEC's lack of decent error messages it might be difficult to diagnose.
The
sslVerificationRequired
andscopeType
fields received from theGET .../webhooks
API call are not supported by BEC right now. Remove them so they don't interfere with our tests.