Skip to content

Commit 781231d

Browse files
author
Cristina Sánchez Sánchez
committed
Added comment
1 parent a2ea83a commit 781231d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

internal/service/clouduserprojectassignment/resource_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,12 @@ func TestAccCloudUserProjectAssignmentRS_basic(t *testing.T) {
2222
func basicTestCase(t *testing.T) *resource.TestCase {
2323
t.Helper()
2424

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.
2627
activeUsername := os.Getenv("MONGODB_ATLAS_USERNAME_2")
2728
pendingUsername := acc.RandomEmail()
2829
projectName := acc.RandomName()
30+
orgID := os.Getenv("MONGODB_ATLAS_ORG_ID")
2931
roles := []string{"GROUP_OWNER", "GROUP_CLUSTER_MANAGER"}
3032
updatedRoles := []string{"GROUP_OWNER", "GROUP_SEARCH_INDEX_EDITOR", "GROUP_READ_ONLY"}
3133

0 commit comments

Comments
 (0)