Skip to content

Commit 45cf3cc

Browse files
committed
reduce tests further
1 parent e6a531a commit 45cf3cc

1 file changed

Lines changed: 0 additions & 34 deletions

File tree

  • rust/user-info-fetcher/src/backend

rust/user-info-fetcher/src/backend/entra.rs

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)