diff options
| author | Rick Bradley <rick@rickbradley.com> | 2008-02-19 15:06:00 -0600 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2008-04-11 13:10:33 -0500 |
| commit | c2f8c69af368a8ba496da4ef0023ac5f0885e3c0 (patch) | |
| tree | 754e1d9bd02ecf1250d3e6bcb2681dbe02583582 /spec/unit/network/http/webrick.rb | |
| parent | 13c40e93a5f65255dd3cf93955e83121cc5bb594 (diff) | |
| download | puppet-c2f8c69af368a8ba496da4ef0023ac5f0885e3c0.tar.gz puppet-c2f8c69af368a8ba496da4ef0023ac5f0885e3c0.tar.xz puppet-c2f8c69af368a8ba496da4ef0023ac5f0885e3c0.zip | |
the indirector will not serve xmlrpc (this is the responsibility of the legacy networking code; it was a mistake to include stubbed support for it in the new code); removing
Diffstat (limited to 'spec/unit/network/http/webrick.rb')
| -rw-r--r-- | spec/unit/network/http/webrick.rb | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/spec/unit/network/http/webrick.rb b/spec/unit/network/http/webrick.rb index 0689b1b6b..6a4c50142 100644 --- a/spec/unit/network/http/webrick.rb +++ b/spec/unit/network/http/webrick.rb @@ -18,7 +18,7 @@ describe Puppet::Network::HTTP::WEBrick, "when turning on listening" do [:mount, :start, :shutdown].each {|meth| @mock_webrick.stubs(meth)} WEBrick::HTTPServer.stubs(:new).returns(@mock_webrick) @server = Puppet::Network::HTTP::WEBrick.new - @listen_params = { :address => "127.0.0.1", :port => 31337, :handlers => [ :node, :catalog ], :protocols => [ :rest, :xmlrpc ] } + @listen_params = { :address => "127.0.0.1", :port => 31337, :handlers => [ :node, :catalog ], :protocols => [ :rest ] } end it "should fail if already listening" do @@ -78,11 +78,6 @@ describe Puppet::Network::HTTP::WEBrick, "when turning on listening" do @server.listen(@listen_params.merge(:protocols => [:rest])) end - it "should use a WEBrick + XMLRPC class to configure WEBrick when XMLRPC services are requested" do - Puppet::Network::HTTP::WEBrickXMLRPC.expects(:new).at_least_once - @server.listen(@listen_params.merge(:protocols => [:xmlrpc])) - end - it "should fail if services from an unknown protocol are requested" do Proc.new { @server.listen(@listen_params.merge(:protocols => [ :foo ]))}.should raise_error(ArgumentError) end @@ -94,7 +89,7 @@ describe Puppet::Network::HTTP::WEBrick, "when turning off listening" do [:mount, :start, :shutdown].each {|meth| @mock_webrick.stubs(meth)} WEBrick::HTTPServer.stubs(:new).returns(@mock_webrick) @server = Puppet::Network::HTTP::WEBrick.new - @listen_params = { :address => "127.0.0.1", :port => 31337, :handlers => [ :node, :catalog ], :protocols => [ :rest, :xmlrpc ] } + @listen_params = { :address => "127.0.0.1", :port => 31337, :handlers => [ :node, :catalog ], :protocols => [ :rest ] } end it "should fail unless listening" do |
