File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
internal/service/clouduserprojectassignment Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -22,10 +22,12 @@ func TestAccCloudUserProjectAssignmentRS_basic(t *testing.T) {
22
22
func basicTestCase (t * testing.T ) * resource.TestCase {
23
23
t .Helper ()
24
24
25
- orgID := os .Getenv ("MONGODB_ATLAS_ORG_ID" )
25
+ // Use MONGODB_ATLAS_USERNAME_2 to avoid USER_ALREADY_IN_GROUP.
26
+ // The default MONGODB_ATLAS_USERNAME (Org Owner) is auto-assigned if no ProjectOwner is set.
26
27
activeUsername := os .Getenv ("MONGODB_ATLAS_USERNAME_2" )
27
28
pendingUsername := acc .RandomEmail ()
28
29
projectName := acc .RandomName ()
30
+ orgID := os .Getenv ("MONGODB_ATLAS_ORG_ID" )
29
31
roles := []string {"GROUP_OWNER" , "GROUP_CLUSTER_MANAGER" }
30
32
updatedRoles := []string {"GROUP_OWNER" , "GROUP_SEARCH_INDEX_EDITOR" , "GROUP_READ_ONLY" }
31
33
You can’t perform that action at this time.
0 commit comments