Skip to content

Commit

Permalink
tracing
Browse files Browse the repository at this point in the history
  • Loading branch information
goatgoose committed Oct 11, 2024
1 parent 4bf38af commit 5015598
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/ci_rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ jobs:
- name: Default Tests
working-directory: ${{env.ROOT_PATH}}
run: cargo test
env:
RUST_LOG: trace,hyper=trace
RUST_BACKTRACE: 1

- name: Test external build
# if this test is failing, make sure that api headers are appropriately
Expand Down
4 changes: 3 additions & 1 deletion bindings/rust/s2n-tls-hyper/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ s2n-tls-tokio = { version = "=0.3.1", path = "../s2n-tls-tokio" }
hyper = { version = "1" }
hyper-util = { version = "0.1", features = ["client-legacy", "tokio", "http1"] }
tower-service = { version = "0.3" }
http = { version= "1" }
http = { version = "1" }
log = "0.4.21"

[dev-dependencies]
tokio = { version = "1", features = ["macros", "test-util"] }
http-body-util = "0.1"
hyper-util = { version = "0.1", features = ["server"] }
bytes = "1"
tracing-subscriber = { version = "^0.3.16", features = ["env-filter"] }
4 changes: 4 additions & 0 deletions bindings/rust/s2n-tls-hyper/tests/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use bytes::Bytes;
use http::{Method, Request, Uri};
use http_body_util::{BodyExt, Empty, Full};
use hyper_util::{client::legacy::Client, rt::TokioExecutor};
use log::info;
use s2n_tls::{
callbacks::{ClientHelloCallback, ConnectionFuture},
connection::Connection,
Expand Down Expand Up @@ -43,6 +44,9 @@ async fn test_get_request() -> Result<(), Box<dyn Error + Send + Sync>> {

#[tokio::test]
async fn test_http_methods() -> Result<(), Box<dyn Error + Send + Sync>> {
tracing_subscriber::fmt::init();
info!("test!");

let methods = [Method::GET, Method::POST, Method::PUT, Method::DELETE];
for method in methods {
#[derive(Clone)]
Expand Down

0 comments on commit 5015598

Please sign in to comment.