mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
rust/pv: Update mockito to version 1
Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user