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

feat(client): Go client for identities #430

Merged
merged 26 commits into from
Jul 8, 2024

Conversation

benhoyt
Copy link
Contributor

@benhoyt benhoyt commented Jun 13, 2024

This adds the Go client types and methods for identities (part of spec OP043), specifically:

  • Identity and IdentityAccess types, with access level constants
  • Identities
  • AddIdentities
  • UpdateIdentities
  • ReplaceIdentities
  • RemoveIdentities

@benhoyt benhoyt marked this pull request as ready for review June 19, 2024 22:51
@benhoyt benhoyt requested a review from hpidcock June 21, 2024 04:49
Copy link
Member

@hpidcock hpidcock left a 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")
Copy link
Member

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?

Copy link
Contributor Author

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.

@benhoyt benhoyt merged commit d3a84b0 into canonical:master Jul 8, 2024
11 checks passed
@benhoyt benhoyt deleted the identities-client branch July 8, 2024 04:04
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