summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorRick Bradley <rick@rickbradley.com>2008-02-19 15:06:00 -0600
committerLuke Kanies <luke@madstop.com>2008-04-11 13:10:33 -0500
commitc2f8c69af368a8ba496da4ef0023ac5f0885e3c0 (patch)
tree754e1d9bd02ecf1250d3e6bcb2681dbe02583582 /spec
parent13c40e93a5f65255dd3cf93955e83121cc5bb594 (diff)
downloadpuppet-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')
-rw-r--r--spec/spec.opts2
-rw-r--r--spec/unit/network/http/mongrel.rb9
-rw-r--r--spec/unit/network/http/webrick.rb9
3 files changed, 6 insertions, 14 deletions
diff --git a/spec/spec.opts b/spec/spec.opts
index 2f9bf0d0a..695852c2f 100644
--- a/spec/spec.opts
+++ b/spec/spec.opts
@@ -1,3 +1,5 @@
+--format
+s
--colour
--loadby
mtime
diff --git a/spec/unit/network/http/mongrel.rb b/spec/unit/network/http/mongrel.rb
index a39e7354a..a837c9daa 100644
--- a/spec/unit/network/http/mongrel.rb
+++ b/spec/unit/network/http/mongrel.rb
@@ -23,7 +23,7 @@ describe Puppet::Network::HTTP::Mongrel, "when turning on listening" do
@mock_mongrel.stubs(:run)
@mock_mongrel.stubs(:register)
Mongrel::HttpServer.stubs(:new).returns(@mock_mongrel)
- @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
@@ -82,11 +82,6 @@ describe Puppet::Network::HTTP::Mongrel, "when turning on listening" do
@server.listen(@listen_params.merge(:protocols => [:rest]))
end
- it "should use a Mongrel + XMLRPC class to configure Mongrel when XMLRPC services are requested" do
- Puppet::Network::HTTP::MongrelXMLRPC.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
@@ -102,7 +97,7 @@ describe Puppet::Network::HTTP::Mongrel, "when turning off listening" do
@mock_mongrel.stubs(:register)
Mongrel::HttpServer.stubs(:new).returns(@mock_mongrel)
@server = Puppet::Network::HTTP::Mongrel.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
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