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]]
|
[[package]]
|
||||||
name = "hyper-custom-cert"
|
name = "hyper-custom-cert"
|
||||||
version = "0.1.0"
|
version = "0.1.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"hyper-rustls",
|
"hyper-rustls",
|
||||||
"hyper-tls",
|
"hyper-tls",
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "hyper-custom-cert"
|
name = "hyper-custom-cert"
|
||||||
version = "0.1.2"
|
version = "0.1.3"
|
||||||
edition = "2021"
|
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."
|
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"
|
license = "MIT OR Apache-2.0"
|
||||||
|
@@ -7,6 +7,8 @@
|
|||||||
//! Never use this in production environments!
|
//! Never use this in production environments!
|
||||||
|
|
||||||
use hyper_custom_cert::HttpClient;
|
use hyper_custom_cert::HttpClient;
|
||||||
|
use std::collections::HashMap;
|
||||||
|
use std::time::Duration;
|
||||||
|
|
||||||
#[cfg(feature = "insecure-dangerous")]
|
#[cfg(feature = "insecure-dangerous")]
|
||||||
#[test]
|
#[test]
|
||||||
@@ -122,15 +124,15 @@ fn insecure_static_convenience_method() {
|
|||||||
#[test]
|
#[test]
|
||||||
fn insecure_multiple_configurations() {
|
fn insecure_multiple_configurations() {
|
||||||
// Test creating multiple clients with different insecure settings
|
// Test creating multiple clients with different insecure settings
|
||||||
let client1 = HttpClient::builder()
|
let _client1 = HttpClient::builder()
|
||||||
.insecure_accept_invalid_certs(true)
|
.insecure_accept_invalid_certs(true)
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
let client2 = HttpClient::builder()
|
let _client2 = HttpClient::builder()
|
||||||
.insecure_accept_invalid_certs(false)
|
.insecure_accept_invalid_certs(false)
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
let client3 = HttpClient::builder()
|
let _client3 = HttpClient::builder()
|
||||||
.with_timeout(Duration::from_secs(10))
|
.with_timeout(Duration::from_secs(10))
|
||||||
.insecure_accept_invalid_certs(true)
|
.insecure_accept_invalid_certs(true)
|
||||||
.build();
|
.build();
|
||||||
|
Reference in New Issue
Block a user