summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThom May <thom@chef.io>2017-12-19 10:17:58 +0000
committerThom May <thom@chef.io>2018-02-20 11:38:08 +0000
commit038f5047063b2c63dcfabc7f7acedd00d8575c09 (patch)
tree08dc69b5f402dd37a4fdc29a8be07ce7e033d8b7
parent793b2951d740e972f5c00a6d14f5fe7a3a04ba15 (diff)
downloadchef-tm/fix_proxy_tests.tar.gz
make sure all proxy settings are dealt withtm/fix_proxy_tests
Signed-off-by: Thom May <thom@chef.io>
-rw-r--r--chef-config/spec/unit/config_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/chef-config/spec/unit/config_spec.rb b/chef-config/spec/unit/config_spec.rb
index f5e9a914c9..41b4382cf0 100644
--- a/chef-config/spec/unit/config_spec.rb
+++ b/chef-config/spec/unit/config_spec.rb
@@ -852,9 +852,13 @@ RSpec.describe ChefConfig::Config do
before(:all) do
@original_env = ENV.to_hash
ENV["http_proxy"] = nil
+ ENV["HTTP_PROXY"] = nil
ENV["https_proxy"] = nil
+ ENV["HTTPS_PROXY"] = nil
ENV["ftp_proxy"] = nil
+ ENV["FTP_PROXY"] = nil
ENV["no_proxy"] = nil
+ ENV["NO_PROXY"] = nil
end
after(:all) do