-
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
base: CLOUDP-333176
Are you sure you want to change the base?
Conversation
APIx bot: a message has been sent to Docs Slack channel |
} | ||
extraChecks := []resource.TestCheckFunc{ | ||
resource.TestCheckResourceAttr(DSNameUserID, "username", username), | ||
resource.TestCheckResourceAttrPair(DSNameUsername, "user_id", DSNameUserID, "user_id"), |
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.
should it be the same check for username above?
userID := state.UserId.ValueString() | ||
username := state.Username.ValueString() | ||
|
||
if username == "" && userID == "" { |
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.
do we have a test to validate this error as well?
@@ -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?
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