@@ -330,8 +330,8 @@ func TestAuthorityParsing(t *testing.T) {
330330 }{
331331 "AAD with slash" : {"https://login.microsoftonline.com/common/" , "MSSTS" , "https://login.microsoftonline.com/common/" , "common" },
332332 "AAD without slash" : {"https://login.microsoftonline.com/common" , "MSSTS" , "https://login.microsoftonline.com/common/" , "common" },
333- "ADFS with slash" : {"https://adfs.example.com/adfs/" , "ADFS" , "https://adfs.example.com/adfs/" , "" },
334- "ADFS without slash" : {"https://adfs.example.com/adfs" , "ADFS" , "https://adfs.example.com/adfs/" , "" },
333+ "ADFS with slash" : {"https://adfs.example.com/adfs/" , "ADFS" , "https://adfs.example.com/adfs/" , "adfs " },
334+ "ADFS without slash" : {"https://adfs.example.com/adfs" , "ADFS" , "https://adfs.example.com/adfs/" , "adfs " },
335335 "dSTS with slash" : {dSTSWithSlash , "DSTS" , dSTSWithSlash , DSTSTenant },
336336 "dSTS without slash" : {dSTSNoSlash , "DSTS" , dSTSWithSlash , DSTSTenant },
337337 }
@@ -364,6 +364,7 @@ func TestAuthParamsWithTenant(t *testing.T) {
364364 }{
365365 "do nothing if tenant override is empty" : {authority : host + uuid1 , tenant : "" , expectedAuthority : host + uuid1 },
366366 "do nothing if tenant override is empty for ADFS" : {authority : host + "adfs" , tenant : "" , expectedAuthority : host + "adfs" },
367+ `do nothing if tenant override is adfs for ADFS` : {authority : host + "adfs" , tenant : "adfs" , expectedAuthority : host + "adfs" },
367368 "do nothing if tenant override equals tenant" : {authority : host + uuid1 , tenant : uuid1 , expectedAuthority : host + uuid1 },
368369
369370 "override common to tenant" : {authority : host + "common" , tenant : uuid1 , expectedAuthority : host + uuid1 },
0 commit comments