summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorRick Bradley <rick@rickbradley.com>2007-12-06 16:04:35 -0600
committerRick Bradley <rick@rickbradley.com>2007-12-06 16:04:35 -0600
commitd267fb2a0b6539ea08c3f855fab4666dd6506f11 (patch)
tree054e52a3761446758ca1ce2584fa9390deb2aefc /spec
parentb38f5384ed3a2427672a1b2008500bfa2a704731 (diff)
parent507406bd44f01e151483f148fadc8d50a9640984 (diff)
Merge branch 'master' of git://reductivelabs.com/puppet into routing
Diffstat (limited to 'spec')
-rwxr-xr-xspec/unit/network/xmlrpc/client.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/unit/network/xmlrpc/client.rb b/spec/unit/network/xmlrpc/client.rb
index b6ab4b367..78fe82719 100755
--- a/spec/unit/network/xmlrpc/client.rb
+++ b/spec/unit/network/xmlrpc/client.rb
@@ -25,6 +25,16 @@ describe Puppet::Network::XMLRPCClient, " when managing http instances" do
Puppet::Network::XMLRPCClient.http_instance("me", 54321).open_timeout.should == 120
end
+ it "should default to http_enable_post_connection_check being enabled" do
+ Puppet.settings[:http_enable_post_connection_check].should be_true
+ end
+
+ # JJM: I'm not sure if this is correct, as this really follows the
+ # configuration option.
+ it "should set enable_post_connection_check true " do
+ Puppet::Network::XMLRPCClient.http_instance("me", 54321).instance_variable_get("@enable_post_connection_check").should be_true
+ end
+
it "should create the http instance with the proxy host and port set if the http_proxy is not set to 'none'" do
Puppet.settings.stubs(:value).with(:http_keepalive).returns(true)
Puppet.settings.stubs(:value).with(:http_proxy_host).returns("myhost")