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:
+1
-1
@@ -22,7 +22,7 @@ serde = { version = "1.0.139", features = ["derive"], optional = true }
|
||||
byteorder = {version = "1.3", optional = true }
|
||||
|
||||
[dev-dependencies]
|
||||
mockito = {version = "0.31", default-features = false }
|
||||
mockito = {version = "1", default-features = false }
|
||||
serde_test = "1"
|
||||
lazy_static = "1.1"
|
||||
|
||||
|
||||
@@ -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