-
Notifications
You must be signed in to change notification settings - Fork 61
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
feat(client): Go client for identities #430
Conversation
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 with a bit of defensive programming with the return value from the server.
@@ -42,6 +42,8 @@ func (cs *clientSuite) TestNotice(c *C) { | |||
}}` | |||
notice, err := cs.cli.Notice("123") | |||
c.Assert(err, IsNil) | |||
c.Assert(cs.req.Method, Equals, "GET") |
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.
Is this just adding consistency to our tests?
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.
Yep, that's right -- and specifically that the client is sending the right HTTP method.
This adds the Go client types and methods for identities (part of spec OP043), specifically:
Identity
andIdentityAccess
types, with access level constantsIdentities
AddIdentities
UpdateIdentities
ReplaceIdentities
RemoveIdentities