-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Local permissions test #2839
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
Local permissions test #2839
Conversation
…mattermost-main
testData := setupData(t, th) | ||
|
||
ttCases := []TestCase{ | ||
{"/register", methodPost, "", userAnon, http.StatusInternalServerError, 0}, |
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 register method is generating an InternalServerError
?
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.
Thanks. I've updated the test case to make a successful register call.
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.
Everything looks good to me, except the InternalServerError return on register.
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.
LGTM
Summary
Added local (Personal Server) version of permissions_test.
Diff
permissinos_tests.go
withlocal_permissions_tests.go
to see differences in expected responses.