diff options
| author | Rick Bradley <rick@rickbradley.com> | 2007-10-15 23:04:24 -0500 |
|---|---|---|
| committer | Rick Bradley <rick@rickbradley.com> | 2007-10-15 23:04:24 -0500 |
| commit | b1d62231c587e13ad78fe1bbd292a6c9f1cb99a1 (patch) | |
| tree | d7a93ce3be6b72f43bff152418925eda609bd861 /spec/unit/network/server.rb | |
| parent | 298eff27a6c702c177fa11e08c980c7365382162 (diff) | |
| download | puppet-b1d62231c587e13ad78fe1bbd292a6c9f1cb99a1.tar.gz puppet-b1d62231c587e13ad78fe1bbd292a6c9f1cb99a1.tar.xz puppet-b1d62231c587e13ad78fe1bbd292a6c9f1cb99a1.zip | |
Bringing in initial handlers for server+protocol pairs.
Diffstat (limited to 'spec/unit/network/server.rb')
| -rw-r--r-- | spec/unit/network/server.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/unit/network/server.rb b/spec/unit/network/server.rb index 6802c6aaa..528d47d0e 100644 --- a/spec/unit/network/server.rb +++ b/spec/unit/network/server.rb @@ -268,6 +268,15 @@ describe Puppet::Network::Server, "when listening is being turned off" do end 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" |
