summaryrefslogtreecommitdiff
path: root/cli/test_util.rs
diff options
context:
space:
mode:
authorgeoFlux <blakejason5@gmail.com>2020-02-17 11:59:51 -0500
committerGitHub <noreply@github.com>2020-02-17 11:59:51 -0500
commit2e7d449623b7faee8feb0a2970e0d6bb7c66b409 (patch)
tree4b3cae1d91709391fcc8facc2d2dca409349f026 /cli/test_util.rs
parent98e585a284f6b8bb568cec52ca3599612b663ef3 (diff)
feat: add --cert flag for http client (#3972)
Diffstat (limited to 'cli/test_util.rs')
-rw-r--r--cli/test_util.rs15
1 files changed, 14 insertions, 1 deletions
diff --git a/cli/test_util.rs b/cli/test_util.rs
index 9c0307096..d2a49d05f 100644
--- a/cli/test_util.rs
+++ b/cli/test_util.rs
@@ -74,7 +74,20 @@ pub fn http_server() -> HttpServerGuard {
println!("tools/http_server.py starting...");
let mut child = Command::new("python")
.current_dir(root_path())
- .args(&["-u", "tools/http_server.py"])
+ .args(&[
+ "-u",
+ "tools/http_server.py",
+ "--certfile",
+ root_path()
+ .join("std/http/testdata/tls/localhost.crt")
+ .to_str()
+ .unwrap(),
+ "--keyfile",
+ root_path()
+ .join("std/http/testdata/tls/localhost.key")
+ .to_str()
+ .unwrap(),
+ ])
.stdout(Stdio::piped())
.spawn()
.expect("failed to execute child");