File tree Expand file tree Collapse file tree
rust/user-info-fetcher/src/backend Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -248,38 +248,4 @@ mod tests {
248248 . unwrap( )
249249 ) ;
250250 }
251-
252- #[ test]
253- fn test_entra_defaults_email ( ) {
254- let tenant_id = "1234-5678-1234-5678" ;
255- let user = "test@stackable.tech" ;
256-
257- let entra = EntraBackend :: try_new (
258- & HostName :: from_str ( "login.microsoft.com" ) . unwrap ( ) ,
259- & HostName :: from_str ( "graph.microsoft.com" ) . unwrap ( ) ,
260- 443 ,
261- tenant_id,
262- true ,
263- )
264- . unwrap ( ) ;
265-
266- assert_eq ! (
267- entra. oauth2_token( ) ,
268- Url :: parse( & format!(
269- "https://login.microsoft.com/{tenant_id}/oauth2/v2.0/token"
270- ) )
271- . unwrap( )
272- ) ;
273- assert_eq ! (
274- entra. user_info( user) ,
275- Url :: parse( & format!( "https://graph.microsoft.com/v1.0/users/{user}" ) ) . unwrap( )
276- ) ;
277- assert_eq ! (
278- entra. group_info( user) ,
279- Url :: parse( & format!(
280- "https://graph.microsoft.com/v1.0/users/{user}/memberOf"
281- ) )
282- . unwrap( )
283- ) ;
284- }
285251}
You can’t perform that action at this time.
0 commit comments