rust/pv: Update mockito to version 1

Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>
This commit is contained in:
Steffen Eiden
2023-11-30 16:02:16 +01:00
parent 19f3842292
commit 21662d38e6
3 changed files with 466 additions and 10 deletions
+3 -1
View File
@@ -14,7 +14,9 @@ use crate::test_utils::*;
pub fn mock_endpt(res: &str) -> mockito::Mock {
let res_path = get_cert_asset_path(res);
mockito::mock("GET", format!("/crl/{res}").as_str())
let mut server = mockito::Server::new();
server
.mock("GET", format!("/crl/{res}").as_str())
.with_header("content-type", "application/pkix-crl")
.with_body_from_file(res_path)
.create()