summaryrefslogtreecommitdiffstats
path: root/spec/unit/network/server.rb
diff options
context:
space:
mode:
authorRick Bradley <rick@rickbradley.com>2007-10-16 10:15:14 -0500
committerRick Bradley <rick@rickbradley.com>2007-10-16 10:15:14 -0500
commitc06edda4c94ef9aa685ed44d7031bb39c4a2b0cc (patch)
treec8fedbe14686ac205c212258ac526cd6483982c8 /spec/unit/network/server.rb
parentab4c7fa825e0d1f702adc215c7ff6d445d3b6559 (diff)
downloadpuppet-c06edda4c94ef9aa685ed44d7031bb39c4a2b0cc.tar.gz
puppet-c06edda4c94ef9aa685ed44d7031bb39c4a2b0cc.tar.xz
puppet-c06edda4c94ef9aa685ed44d7031bb39c4a2b0cc.zip
First pass through initializers of {mongrel, webrick} REST handlers; hooks into Indirection to look up models from indirected names.
Diffstat (limited to 'spec/unit/network/server.rb')
-rw-r--r--spec/unit/network/server.rb17
1 files changed, 1 insertions, 16 deletions
diff --git a/spec/unit/network/server.rb b/spec/unit/network/server.rb
index 659eb1930..97ab4443a 100644
--- a/spec/unit/network/server.rb
+++ b/spec/unit/network/server.rb
@@ -273,25 +273,10 @@ describe Puppet::Network::Server, "when listening is being turned off" do
end
- # TODO / FIXME : HERE -- need to begin resolving the model behind the indirection
- # looks like: get the handler class, providing @server to it
- # have the handler class register the handler @ the right URL
- # handler class knows the correct path to use, correct registration method to call
- # handler also know how to get the model class from the indirection name
- # do we change indirection name to indirection (instead of saying "handlers")?
-
-
-describe Class.new, "Puppet::Network::Handler::*::* (handler class (e.g., webrick+rest or mongrel+xmlrpc))" do
- it "should be able to unserialize a request from the given httpserver answering for the given protocol handler, to be used by a controller"
- it "should be able to serialize a result from a controller for return by the given httpserver responding with the given protocol"
- it "should properly encode an exception from a controller for use by the httpserver for the given protocol handler"
- it "should call the appropriate controller method"
- it "should properly encode parameters on the request for use by the controller methods"
-end
-
describe Class.new, "put these somewhere" do
it "should allow indirections to deny access to services based upon which client is connecting, or whether the client is authorized"
it "should deny access to clients based upon rules"
end
+