-
Notifications
You must be signed in to change notification settings - Fork 315
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
Add provisioning api #343
Add provisioning api #343
Conversation
patrick-tolosa
commented
Feb 10, 2020
- Implement the Provisioning API.
- Test coverage 100% of required arguments - (did not implement a test for all optional arguments)
- Created CRUD apis for USERS, SUB_ACCOUNTS and USER_GROUPS
- Happy to add more tests if needed
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.
See my comments
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.
@patrick-tolosa Even just skimming, a few new issues jumped out at me. After implementing these (assuming you agree with all), feel free to merge. (No need for another review :-)
lib/provisioning/account.js
Outdated
* @param sub_account_id {string} - The ID of the sub-account. | ||
* @param [name] {string} - The display name as shown in the management console. | ||
* @param [cloud_name] {string} - A case-insensitive cloud name comprised of alphanumeric and underscore characters. | ||
* Use with caution - generates an error if the cloud name is not unique across all |
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.
* Use with caution - generates an error if the cloud name is not unique across all |
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.
This is from @MeirFeinberg , he wanted to emphasise since it returns strange error, but yeah can be removed
provisioning_api_key: string; | ||
provisioning_api_secret: string; |
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.
Hi @patrick-tolosa! Why these two are required? My type checking start complaining about them.
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.
Hi,
Thanks for bringing this up, I've opened #451 to address it.
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.
thank you!