From fc9049408fdc4b506d967481c95554fd9fc2d3da Mon Sep 17 00:00:00 2001 From: "R. Tyler Croy" Date: Sun, 17 Dec 2023 18:38:05 +0000 Subject: [PATCH] Allow hitting HTTP endpoints in tests This is being done in init_logger() which means its typically as early as possible for most tests --- tests/helpers/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/helpers/mod.rs b/tests/helpers/mod.rs index 20c2b7b..9cf941d 100644 --- a/tests/helpers/mod.rs +++ b/tests/helpers/mod.rs @@ -316,6 +316,10 @@ pub fn create_runtime(name: &str) -> Runtime { } pub fn init_logger() { + // Any time the test_aws_endpoint() is being used the ability to hit HTTP hosts + // needs to be enabled + env::set_var("AWS_ALLOW_HTTP", "true"); + let _ = env_logger::Builder::new() .format(|buf, record| { let thread_name = std::thread::current()