File tree Expand file tree Collapse file tree 4 files changed +15
-4
lines changed
service/clouduserteamassignment Expand file tree Collapse file tree 4 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 43
43
mongodb_atlas_project_owner_id :
44
44
type : string
45
45
required : true
46
+ mongodb_atlas_cloud_user_id :
47
+ type : string
48
+ required : true
46
49
mongodb_atlas_teams_ids :
47
50
type : string
48
51
required : true
@@ -616,7 +619,7 @@ jobs:
616
619
env :
617
620
MONGODB_ATLAS_LAST_VERSION : ${{ needs.get-provider-version.outputs.provider_version }}
618
621
MONGODB_ATLAS_TEAMS_IDS : ${{ inputs.mongodb_atlas_teams_ids }}
619
- MONGODB_ATLAS_PROJECT_OWNER_ID : ${{ inputs.mongodb_atlas_project_owner_id }}
622
+ MONGODB_ATLAS_CLOUD_USER_ID : ${{ inputs.mongodb_atlas_cloud_user_id }}
620
623
MONGODB_ATLAS_ORG_ID : ${{ inputs.mongodb_atlas_org_id }}
621
624
MONGODB_ATLAS_USERNAME : ${{ vars.MONGODB_ATLAS_USERNAME }}
622
625
MONGODB_ATLAS_USERNAME_2 : ${{ vars.MONGODB_ATLAS_USERNAME_2 }}
Original file line number Diff line number Diff line change @@ -108,6 +108,7 @@ jobs:
108
108
mongodb_atlas_base_url : ${{ inputs.atlas_cloud_env == 'qa' && vars.MONGODB_ATLAS_BASE_URL_QA || vars.MONGODB_ATLAS_BASE_URL }}
109
109
mongodb_realm_base_url : ${{ inputs.atlas_cloud_env == 'qa' && vars.MONGODB_REALM_BASE_URL_QA || vars.MONGODB_REALM_BASE_URL }}
110
110
mongodb_atlas_project_owner_id : ${{ inputs.atlas_cloud_env == 'qa' && vars.MONGODB_ATLAS_PROJECT_OWNER_ID_QA || vars.MONGODB_ATLAS_PROJECT_OWNER_ID }}
111
+ mongodb_atlas_cloud_user_id : ${{ inputs.atlas_cloud_env == 'qa' && vars.MONGODB_ATLAS_CLOUD_USER_ID_QA || vars.MONGODB_ATLAS_CLOUD_USER_ID }}
111
112
mongodb_atlas_teams_ids : ${{ inputs.atlas_cloud_env == 'qa' && vars.MONGODB_ATLAS_TEAMS_IDS_QA || vars.MONGODB_ATLAS_TEAMS_IDS }}
112
113
azure_atlas_app_id : ${{ inputs.atlas_cloud_env == 'qa' && vars.AZURE_ATLAS_APP_ID_QA || vars.AZURE_ATLAS_APP_ID }}
113
114
azure_service_principal_id : ${{ inputs.atlas_cloud_env == 'qa' && vars.AZURE_SERVICE_PRINCIPAL_ID_QA || vars.AZURE_SERVICE_PRINCIPAL_ID }}
Original file line number Diff line number Diff line change @@ -22,13 +22,12 @@ func TestAccCloudUserTeamAssignment_basic(t *testing.T) {
22
22
23
23
func basicTestCase (t * testing.T ) * resource.TestCase {
24
24
t .Helper ()
25
-
26
25
orgID := os .Getenv ("MONGODB_ATLAS_ORG_ID" )
27
- userID := os .Getenv ("MONGODB_ATLAS_PROJECT_OWNER_ID " )
26
+ userID := os .Getenv ("MONGODB_ATLAS_CLOUD_USER_ID " )
28
27
teamName := acc .RandomName ()
29
28
30
29
return & resource.TestCase {
31
- PreCheck : func () { acc .PreCheckBasic ( t ); acc . PreCheckBasicOwnerID (t ) },
30
+ PreCheck : func () { acc .PreCheckCloudUserID (t ) },
32
31
ProtoV6ProviderFactories : acc .TestAccProviderV6Factories ,
33
32
CheckDestroy : checkDestroy ,
34
33
Steps : []resource.TestStep {
Original file line number Diff line number Diff line change @@ -84,6 +84,14 @@ func PreCheckBasicOwnerID(tb testing.TB) {
84
84
}
85
85
}
86
86
87
+ func PreCheckCloudUserID (tb testing.TB ) {
88
+ tb .Helper ()
89
+ PreCheckBasic (tb )
90
+ if os .Getenv ("MONGODB_ATLAS_CLOUD_USER_ID" ) == "" {
91
+ tb .Fatal ("`MONGODB_ATLAS_CLOUD_USER_ID` must be set " )
92
+ }
93
+ }
94
+
87
95
func PreCheckAtlasUsername (tb testing.TB ) {
88
96
tb .Helper ()
89
97
PreCheckBasic (tb )
You can’t perform that action at this time.
0 commit comments