Skip to content

Commit

Permalink
tests: add more badssl tests for rustls
Browse files Browse the repository at this point in the history
  • Loading branch information
lucab authored and seanmonstar committed Aug 20, 2019
1 parent e70214f commit a8b3bc6
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/badssl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,19 @@ fn test_badssl_modern() {
assert!(text.contains("<title>mozilla-modern.badssl.com</title>"));
}

#[cfg(feature = "rustls-tls")]
#[test]
fn test_rustls_badssl_modern() {
let text = reqwest::Client::builder()
.use_rustls_tls()
.build().unwrap()
.get("https://mozilla-modern.badssl.com/")
.send().unwrap()
.text().unwrap();

assert!(text.contains("<title>mozilla-modern.badssl.com</title>"));
}

#[cfg(feature = "tls")]
#[test]
fn test_badssl_self_signed() {
Expand Down

0 comments on commit a8b3bc6

Please sign in to comment.