mirror of
https://github.com/seemueller-io/hyper-custom-cert.git
synced 2025-09-08 22:46:45 +00:00
Fix CI failures, bump version to 0.1.3 and update tests for added timeout configuration
This commit is contained in:
2
Cargo.lock
generated
2
Cargo.lock
generated
@@ -364,7 +364,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "hyper-custom-cert"
|
||||
version = "0.1.0"
|
||||
version = "0.1.2"
|
||||
dependencies = [
|
||||
"hyper-rustls",
|
||||
"hyper-tls",
|
||||
|
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "hyper-custom-cert"
|
||||
version = "0.1.2"
|
||||
version = "0.1.3"
|
||||
edition = "2021"
|
||||
description = "A small, ergonomic HTTP client wrapper around hyper with optional support for custom Root CAs and a dev-only insecure mode for self-signed certificates."
|
||||
license = "MIT OR Apache-2.0"
|
||||
|
@@ -7,6 +7,8 @@
|
||||
//! Never use this in production environments!
|
||||
|
||||
use hyper_custom_cert::HttpClient;
|
||||
use std::collections::HashMap;
|
||||
use std::time::Duration;
|
||||
|
||||
#[cfg(feature = "insecure-dangerous")]
|
||||
#[test]
|
||||
@@ -122,15 +124,15 @@ fn insecure_static_convenience_method() {
|
||||
#[test]
|
||||
fn insecure_multiple_configurations() {
|
||||
// Test creating multiple clients with different insecure settings
|
||||
let client1 = HttpClient::builder()
|
||||
let _client1 = HttpClient::builder()
|
||||
.insecure_accept_invalid_certs(true)
|
||||
.build();
|
||||
|
||||
let client2 = HttpClient::builder()
|
||||
let _client2 = HttpClient::builder()
|
||||
.insecure_accept_invalid_certs(false)
|
||||
.build();
|
||||
|
||||
let client3 = HttpClient::builder()
|
||||
let _client3 = HttpClient::builder()
|
||||
.with_timeout(Duration::from_secs(10))
|
||||
.insecure_accept_invalid_certs(true)
|
||||
.build();
|
||||
|
Reference in New Issue
Block a user