adapt tests

This commit is contained in:
Vincent Breitmoser 2019-04-25 19:44:16 +02:00
parent 50c6b4cf38
commit a03f7eb887
No known key found for this signature in database
GPG Key ID: 7BD18320DEADFA11
1 changed files with 7 additions and 1 deletions

View File

@ -588,10 +588,16 @@ pub mod tests {
let mut response = client.get("/about").dispatch();
assert_eq!(response.status(), Status::Ok);
assert_eq!(response.content_type(), Some(ContentType::HTML));
assert!(response.body_string().unwrap().contains("distribution and discovery"));
// Check that we see the privacy policy.
let mut response = client.get("/about/privacy").dispatch();
assert_eq!(response.status(), Status::Ok);
assert_eq!(response.content_type(), Some(ContentType::HTML));
assert!(response.body_string().unwrap().contains("Public Key Data"));
// Check that we see the API docs.
let mut response = client.get("/apidoc").dispatch();
let mut response = client.get("/about/api").dispatch();
assert_eq!(response.status(), Status::Ok);
assert_eq!(response.content_type(), Some(ContentType::HTML));
assert!(response.body_string().unwrap().contains("/vks/v1/by-keyid"));