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
+1 -1
View File
@@ -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"
+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()