-
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
fix(enterprise manager): update enterprise management after recent api changes #107
Conversation
Co-authored-by: András Csányi <[email protected]>
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.
A few non-critical changes are needed, but I'm approving now and we can include the integration test changes in a follow-on PR.
BeforeEach(func() { | ||
shouldSkipTest() | ||
}) | ||
It(`CreateAccountGroup(createAccountGroupOptions *CreateAccountGroupOptions)`, func() { |
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 think a cleaner way to create 2 account groups would be to have two separate It() blocks, with each one creating a single account group.
BeforeEach(func() { | ||
shouldSkipTest() | ||
}) | ||
It(`ListAccountGroups(listAccountGroupsOptions *ListAccountGroupsOptions)`, func() { |
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.
Let's re-code this test so that it uses a loop to retrieve a page at a time (perhaps use limit=1?) and accumulate the results in a slice, similar to how the user-management int tests exercise the list-type operations.
|
||
It("Successfully Create Account", func() { | ||
shouldSkipTest() | ||
listEnterprisesOptions := &enterprisemanagementv1.ListEnterprisesOptions{ |
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.
Need to exercise pagination for this operation as well.
## [0.18.6](v0.18.5...v0.18.6) (2021-04-07) ### Bug Fixes * **enterprise manager:** update enterprise management after recent api changes ([#107](#107)) ([3a11a67](3a11a67))
🎉 This PR is included in version 0.18.6 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
PR summary
This PR updates Enterprise Manager Service SDK.
Old integration tests using Account Manager private api endpoints has been removed. There are SDK methods still untested due to that they require account creation programatically, and unfortunateley we don't have that yet.
These methods:
PR Checklist
Please make sure that your PR fulfills the following requirements:
Current vs new behavior
Does this PR introduce a breaking change?
Other information