Skip to content

Commit 8aee0b3

Browse files
Addressed PR comment
1 parent 85bf20d commit 8aee0b3

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

mongodbatlas/ldap_configurations_test.go

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,12 @@ func TestLDAPConfigurations_Verify(t *testing.T) {
2828
}`)
2929
})
3030

31-
request := &LDAP{}
31+
request := &LDAP{
32+
Hostname: "atlas-ldaps-01.ldap.myteam.com",
33+
Port: 636,
34+
BindUsername: "CN=Administrator,CN=Users,DC=atlas-ldaps-01,DC=myteam,DC=com",
35+
BindPassword: "admin",
36+
}
3237
ldap, _, err := client.LDAPConfigurations.Verify(ctx, groupID, request)
3338
if err != nil {
3439
t.Fatalf("LDAPConfigurations.Verify returned error: %v", err)
@@ -133,7 +138,16 @@ func TestLDAPConfigurations_Save(t *testing.T) {
133138
}`)
134139
})
135140

136-
request := &LDAPConfiguration{}
141+
request := &LDAPConfiguration{
142+
LDAP: &LDAP{
143+
AuthenticationEnabled: true,
144+
AuthorizationEnabled: true,
145+
Hostname: "atlas-ldaps-01.ldap.myteam.com",
146+
Port: 636,
147+
BindUsername: "CN=Administrator,CN=Users,DC=atlas-ldaps-01,DC=myteam,DC=com",
148+
BindPassword: "admin",
149+
},
150+
}
137151
ldap, _, err := client.LDAPConfigurations.Save(ctx, groupID, request)
138152
if err != nil {
139153
t.Fatalf("LDAPConfigurations.Save returned error: %v", err)

0 commit comments

Comments
 (0)