@@ -232,7 +232,7 @@ func TestLDAPConfigurations_Delete(t *testing.T) {
232232
233233 groupID := "535683b3794d371327b"
234234
235- mux .HandleFunc (fmt .Sprintf ("/groups/%s/userSecurity" , groupID ), func (w http.ResponseWriter , r * http.Request ) {
235+ mux .HandleFunc (fmt .Sprintf ("/groups/%s/userSecurity/ldap/userToDNMapping " , groupID ), func (w http.ResponseWriter , r * http.Request ) {
236236 testMethod (t , r , http .MethodDelete )
237237 fmt .Fprint (w , `{
238238 "ldap" : {
@@ -241,11 +241,7 @@ func TestLDAPConfigurations_Delete(t *testing.T) {
241241 "authzQueryTemplate" : "{USER}?memberOf?base",
242242 "bindUsername" : "CN=Administrator,CN=Users,DC=atlas-ldaps-01,DC=myteam,DC=com",
243243 "hostname" : "atlas-ldaps-01.ldap.myteam.com",
244- "port" : 636,
245- "userToDNMapping" : [ {
246- "match" : "(.*)",
247- "substitution" : "CN={0},CN=Users,DC=atlas-ldaps-01,DC=myteam,DC=com"
248- } ]
244+ "port" : 636
249245 }
250246 }` )
251247 })
@@ -262,12 +258,6 @@ func TestLDAPConfigurations_Delete(t *testing.T) {
262258 Hostname : "atlas-ldaps-01.ldap.myteam.com" ,
263259 Port : 636 ,
264260 BindUsername : "CN=Administrator,CN=Users,DC=atlas-ldaps-01,DC=myteam,DC=com" ,
265- UserToDNMapping : []* UserToDNMapping {
266- {
267- Match : "(.*)" ,
268- Substitution : "CN={0},CN=Users,DC=atlas-ldaps-01,DC=myteam,DC=com" ,
269- },
270- },
271261 AuthzQueryTemplate : "{USER}?memberOf?base" ,
272262 },
273263 }
0 commit comments