-
Notifications
You must be signed in to change notification settings - Fork 205
feat: Add new singular data source mongodbatlas_cloud_user_project_assignment #3569
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
Conversation
APIx bot: a message has been sent to Docs Slack channel |
@@ -128,7 +128,7 @@ func removeProjectInvitationConfigThird(username, projectName, orgID string, rol | |||
`, username, rolesStr, projectName, orgID) | |||
} | |||
|
|||
func checksSecond(username, projectName string, roles []string) resource.TestCheckFunc { | |||
func checksSecond(username string, roles []string) resource.TestCheckFunc { |
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.
why are we managing the project as part of this test?
Can we not use ProjectIDExecution?
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.
Yes we can, thanks for pointing that out! Updated it
roles = [%[5]s] | ||
} | ||
|
||
data "mongodbatlas_cloud_user_project_assignment" "testUsername" { |
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.
nit: stay consistent with format used for naming resources/data sources, for example, for resource you used test_active
(with an _) but here uou name it testUsername
(different casing).
Use one format consistently & this applies to all tests, examples, documentation etc
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.
Good point, changed it to be consistent
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 once naming in tests is consistent:)
) * WIP- Created resource * Added model tests * Added tests * Fixed import * Typo * Preview new SDK version * WIP - Migration test * WIP - migration test * Updated SDK * Revert "Updated SDK" This reverts commit f8d2d0a. * Updated SDK * Fixed migration test * Changelog * CheckDestroy * Refactor * typo * Fix * Added TestNewAtlasUpdateReq * Empty/nil test cases * Fix * Added active user to test * Added MONGODB_ATLAS_USERNAME_2 * Changed Update to read from API * Added comment * feat: Add new singular data source mongodbatlas_cloud_user_project_assignment (#3569) * Add schema and Read() method * Add data source to provider * WIP * Tests * Changed tests * Changelog * Refactor * Typo * Fix * Updated tests * Fixed test * Added error --------- Co-authored-by: Cristina Sánchez Sánchez <[email protected]> --------- Co-authored-by: Cristina Sánchez Sánchez <[email protected]>
Description
Add new singular data source:
mongodbatlas_cloud_user_project_assignment
Link to any related issue(s): CLOUDP-333177
Type of change:
Required Checklist:
Further comments