summaryrefslogtreecommitdiffstats
path: root/test/network/client
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-05-07 14:45:13 -0500
committerLuke Kanies <luke@madstop.com>2008-05-07 14:45:13 -0500
commite936ef2426464b901638bf338c1c42590245b58f (patch)
tree2ba78ca3e29c0dc63a115ae0191b7c74e7829dab /test/network/client
parent1cfb0215a4d56af9ac1e0c672d9ae597dfde846e (diff)
downloadpuppet-e936ef2426464b901638bf338c1c42590245b58f.tar.gz
puppet-e936ef2426464b901638bf338c1c42590245b58f.tar.xz
puppet-e936ef2426464b901638bf338c1c42590245b58f.zip
Fixing some broken tests.
The HttpPool module now removes its cached ssl_host instance when clearing its cache. This is really only useful for testing, but it correctly causes the pool to use new certificates when they're available.
Diffstat (limited to 'test/network/client')
-rwxr-xr-xtest/network/client/ca.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/network/client/ca.rb b/test/network/client/ca.rb
index 9781e9589..2546642cd 100755
--- a/test/network/client/ca.rb
+++ b/test/network/client/ca.rb
@@ -35,6 +35,7 @@ class TestClientCA < Test::Unit::TestCase
Puppet.settings.stubs(:value).with(:http_proxy_host).returns(nil)
Puppet.settings.stubs(:value).with(:http_proxy_port).returns(nil)
Puppet.settings.stubs(:value).with(:http_keepalive).returns(false)
+ Puppet.settings.stubs(:value).with(:configtimeout).returns(180)
# Just throw an error; the important thing is the values, not what happens next.
Net::HTTP.stubs(:new).with("myca", 321, nil, nil).raises(ArgumentError)