From 2e7d449623b7faee8feb0a2970e0d6bb7c66b409 Mon Sep 17 00:00:00 2001 From: geoFlux Date: Mon, 17 Feb 2020 11:59:51 -0500 Subject: feat: add --cert flag for http client (#3972) --- cli/test_util.rs | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'cli/test_util.rs') 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"); -- cgit v1.2.3