@@ -329,10 +329,16 @@ func TestAuthParamsWithTenant(t *testing.T) {
329329 authority , expectedAuthority , tenant string
330330 expectError bool
331331 }{
332- "override common to tenant" : {authority : host + "common" , tenant : uuid1 , expectedAuthority : host + uuid1 },
333- "override organizations to tenant" : {authority : host + "organizations" , tenant : uuid1 , expectedAuthority : host + uuid1 },
334- "override tenant to tenant2" : {authority : host + uuid1 , tenant : uuid2 , expectedAuthority : host + uuid2 },
332+ "do nothing if tenant override is empty" : {authority : host + uuid1 , tenant : "" , expectedAuthority : host + uuid1 },
333+ "do nothing if tenant override is empty for ADFS" : {authority : host + "adfs" , tenant : "" , expectedAuthority : host + "adfs" },
334+ "do nothing if tenant override equals tenant" : {authority : host + uuid1 , tenant : uuid1 , expectedAuthority : host + uuid1 },
335+
336+ "override common to tenant" : {authority : host + "common" , tenant : uuid1 , expectedAuthority : host + uuid1 },
337+ "override organizations to tenant" : {authority : host + "organizations" , tenant : uuid1 , expectedAuthority : host + uuid1 },
338+ "override tenant to tenant2" : {authority : host + uuid1 , tenant : uuid2 , expectedAuthority : host + uuid2 },
339+
335340 "tenant can't be common for AAD" : {authority : host + uuid1 , tenant : "common" , expectError : true },
341+ "tenant can't be consumers for AAD" : {authority : host + uuid1 , tenant : "consumers" , expectError : true },
336342 "tenant can't be organizations for AAD" : {authority : host + uuid1 , tenant : "organizations" , expectError : true },
337343 "can't override tenant for ADFS ever" : {authority : host + "adfs" , tenant : uuid1 , expectError : true },
338344 "can't override AAD tenant consumers" : {authority : host + "consumers" , tenant : uuid1 , expectError : true },
0 commit comments