Test google::Web auth_uri
This commit is contained in:
parent
ac749b941c
commit
6c885b5a1b
|
@ -10,6 +10,20 @@ fn assert_get_uri_ok(uri: &str) {
|
|||
assert_eq!(hyper::Ok, response.status);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn google_web_auth_uri_ok() {
|
||||
let client = Client::<google::Web>::new(
|
||||
String::from("143225766783-0h4h5ktpvhc7kqp6ohbpd2sssqrap57n.apps.googleusercontent.com"),
|
||||
String::new(),
|
||||
Some(String::from("https://cmcenroe.me/oauth2-paste/")),
|
||||
);
|
||||
let auth_uri = client.auth_uri(
|
||||
Some("https://www.googleapis.com/auth/userinfo.email"),
|
||||
Some("state"),
|
||||
).unwrap();
|
||||
assert_get_uri_ok(&auth_uri);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn google_installed_auth_uri_ok() {
|
||||
let client = Client::<google::Installed>::new(
|
||||
|
|
Loading…
Reference in New Issue