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

test/auth: add more tests for auth endpoints #52

Merged
merged 9 commits into from
Apr 15, 2019
Merged

Conversation

rudyardrichter
Copy link
Contributor

@rudyardrichter rudyardrichter commented Apr 5, 2019

Improvements

  • Add more tests for auth endpoints. All the tests.

@rudyardrichter rudyardrichter marked this pull request as ready for review April 9, 2019 21:52
@@ -105,6 +105,9 @@ func authorize(request *AuthRequest) (*AuthResponse, error) {
// parse the resource string
exp, args, err := Parse(request.Resource)
if err != nil {
// TODO (rudyardrichter, 2019-04-05): this can return some pretty
// unintelligible errors from the yacc code. so far callers are OK to
// validate inputs, but could do better to return more readable errors
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the comment! In new design this yacc thing will probably be removed FYI.

Copy link
Contributor

@fantix fantix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Much appreciated!

@rudyardrichter rudyardrichter merged commit 90182e2 into feat/db Apr 15, 2019
@rudyardrichter rudyardrichter deleted the test/auth branch May 23, 2019 21:33
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.

2 participants