From e1d190e415d3fe422998e4a7d58a2dfdf6108d5c Mon Sep 17 00:00:00 2001 From: Luis Galeas Date: Wed, 2 Oct 2024 19:51:26 +0100 Subject: [PATCH 1/2] Style fix --- src/tls_client_config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tls_client_config.rs b/src/tls_client_config.rs index f2ad5d6..739cb6c 100644 --- a/src/tls_client_config.rs +++ b/src/tls_client_config.rs @@ -1,7 +1,7 @@ +use anyhow::bail; use rustls::{ClientConfig, RootCertStore}; use std::fs; use std::io::{Cursor, Read}; -use anyhow::bail; pub(crate) fn client_config(ca_roots_directory: &str) -> anyhow::Result { let mut root_cert_store = RootCertStore::empty(); From 055bbdacc8049427d63d02f81bdc2c127814b8e5 Mon Sep 17 00:00:00 2001 From: Luis Galeas Date: Wed, 2 Oct 2024 19:54:30 +0100 Subject: [PATCH 2/2] Fix interactive script that shouldnt be interactive --- development-environment/test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/development-environment/test.sh b/development-environment/test.sh index de90360..3b33bb3 100755 --- a/development-environment/test.sh +++ b/development-environment/test.sh @@ -31,7 +31,7 @@ printf "\n\n\n\n\n" echo "============================================" echo "Executing end to end tests. Expecting to find records:" echo "============================================" -docker exec -it pgt-proxy-postgres-client bash ./end_to_end_test.sh | grep "john.doe@example.com" +docker exec -t pgt-proxy-postgres-client bash ./end_to_end_test.sh | grep "john.doe@example.com" echo "============================================" echo "Executed end to end tests successfully. Connected successfully to the database through the proxy, and read a record." echo "============================================"