summaryrefslogtreecommitdiffstats
path: root/spec/unit/network/server.rb
Commit message (Collapse)AuthorAgeFilesLines
* [#3994] rename the specs to have _spec.rb at the endMarkus Roberts2010-06-231-534/+0
| | | | | | | | | Some spec files like active_record.rb had names that would confuse the load path and get loaded instead of the intended implentation when the spec was run from the same directory as the file. Author: Matt Robinson <matt@puppetlabs.com> Date: Fri Jun 11 15:29:33 2010 -0700
* Removed extra whitespace from end of linesIan Taylor2009-06-061-11/+11
|
* Removing unneeded test stubsLuke Kanies2009-05-031-8/+0
| | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* Fixing #2195 - the Server class handles bindaddressLuke Kanies2009-05-031-25/+35
| | | | | | | The Server class has all of the logic now, instead of doing weird things in the defaults. Signed-off-by: Luke Kanies <luke@madstop.com>
* Merge branch '0.24.x'Luke Kanies2008-06-141-0/+0
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also added the fixes to make the certhandler tests pass even when certs exist; I'll deal with the conflict later. Conflicts: CHANGELOG bin/puppetd lib/puppet/network/http/handler.rb lib/puppet/network/http/mongrel/rest.rb spec/integration/indirector/rest.rb spec/integration/network/server/mongrel.rb spec/integration/network/server/webrick.rb spec/unit/network/http/webrick.rb
| * Adding execute bits to every test currently missing them.Luke Kanies2008-06-131-0/+0
| |
* | Adding pidfile management and daemonization to the ServerLuke Kanies2008-05-071-195/+301
| | | | | | | | class.
* | Switched puppetmasterd to use the new-style server plumbing.Luke Kanies2008-05-021-0/+10
| | | | | | | | | | | | | | | | The code is much cleaner, and it seems to be mostly functional, but we have to pick a strategy for signing the host's certificate on first startup. Also, I haven't actually done end-to-end testing yet, which needs the certs working first.
* | Adding configuration support for XMLRPC handlers.Luke Kanies2008-05-021-118/+218
| | | | | | | | | | | | | | | | | | This provides the interface for configuring backward compatibility in the new-style server code. It requires a completely different configuration step, in that REST and xmlrpc handlers are configured separately, rather than using the same handler names, but this was considered less evil than having a large abstraction layer for specifying how the handlers are related.
* | Merge branch '0.24.x'Luke Kanies2008-04-111-15/+42
|\| | | | | | | | | | | Conflicts: spec/unit/network/server.rb
| * adding REST save support, with integration tests. A handful of unit tests ↵Rick Bradley2008-04-111-2/+0
| | | | | | | | in that area now need to be updated.
| * Much larger commit than I would like to land at once. This is all ↵Rick Bradley2008-04-111-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | REST-related code. Two specs are failing related to how Mongrel is initialized for REST; will fix those shortly. REST indirector now supports find, with deserialization. Network code in indirector now. Will still need to un-hardwire address/port for outbound connections. Will still need to urlencode path parameters. Code for search, destroy, update is coming, should be similar to find. Reworked how the Handler module is used. Needed to be included, rather than inherited. Needed to sidestep initializers for actual web servers (webrick, mongrel), needed to be possible to have handler-including class be used as a class (aka servlet) instead of as an instance. Webrick handler registration is now abstracted to "above" the servlet. Provided a #model method to use instead of @model in handler module. This allows neutering during testing. Brought class_for_protocol up into http/webrick class as a (tested) class method. Integration tests for rest indirection. Split server integration tests into mongrel and webrick tests. Got Node/REST working properly wrt the crazy-ass autoloader thing. We're now actually passing traffic w/ webrick, fwiw.
| * This is the first version where mongrel and webrick are reliably startable ↵Rick Bradley2008-04-111-9/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and stoppable via Puppet::Network::Server. Added a network/server integration spec, testing startup, shutdown, reachability, and collision of webrick and mongrel servers in the new network code. Converted Puppet::Network::HTTP::Handler class to a module, as mongrel Handler should be subclassed; converting subclasses to include the module instead. Mongrel will actually stop if you .stop it, graceful_shutdown didn't seem quite so reliable. Webrick requires running in its own Thread to avoid hanging the entire process; this requires introduction of a Mutex to make things safe. We're only supporting the REST protocol. Made this explicit. Fixed http server setup args, w/ specs, ah the glory of integration testing.
* | tweaking spec language; require Puppet::Network::HTTP class since it is ↵Rick Bradley2007-12-071-4/+4
|/ | | | referenced by Puppet::Network::Server
* Merge branch 'master' of git://reductivelabs.com/puppet into routingRick Bradley2007-10-221-1/+6
|\ | | | | | | | | | | Conflicts: spec/unit/indirector/indirection.rb
* | More specs, fleshing out the returns from RESTRick Bradley2007-10-171-2/+4
| |
* | First pass through initializers of {mongrel, webrick} REST handlers; hooks ↵Rick Bradley2007-10-161-16/+1
| | | | | | | | into Indirection to look up models from indirected names.
* | Minor tweaks to make the ::Server initialization a bit more robust. Fail on ↵Rick Bradley2007-10-161-3/+7
| | | | | | | | unknown HTTP Server types; fail fast.
* | Bringing in initial handlers for server+protocol pairs.Rick Bradley2007-10-151-0/+9
| |
* | Hooking up address/port support for the various servers w/ specs. Still ↵Rick Bradley2007-10-151-12/+58
| | | | | | | | need to start up a webrick server w/ address + port (this is far too incestuous with Puppet lib & Puppet.start at the moment).
* | More unit specs for mongrel and webrick; more code to make them work, yo.Rick Bradley2007-10-151-23/+1
| |
* | Pushing functionality down to webrick/mongrel classes now; cleanup in the ↵Rick Bradley2007-10-151-37/+74
| | | | | | | | base server / http server classes + specs.
* | interim checkin of network stuffsRick Bradley2007-10-121-151/+190
|/
* Homing in on a clean separation of concerns for a low-coupling, ↵Rick Bradley2007-10-061-8/+11
| | | | high-cohesion "server" model that will handle REST and/or XMLRPC on webrick and/or mongrel.
* Moving the webrick/mongrel "servers" over to HTTPServer module instead of ↵Rick Bradley2007-10-051-0/+181
Server. Using Server as the master class for client connections. Server (former RESTServer) will instantiate the appropriate subclass based upon Puppet configurator setting. There are now tests broken in the network section which I can't seem to figure out yet. Not a happy place to be.