summaryrefslogtreecommitdiffstats
path: root/spec/integration/network
Commit message (Collapse)AuthorAgeFilesLines
* Fixes #2444 - Various JSON test failuresMarkus Roberts2009-08-031-3/+17
|
* Migrating Handler base tests from test/ to spec/Luke Kanies2009-08-021-0/+25
| | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* Migrating tests to spec and removing an obsolete testLuke Kanies2009-08-021-0/+19
| | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* Adding a JSON formatLuke Kanies2009-06-061-0/+73
| | | | Also making some log messages more informative.
* Removed extra whitespace from end of linesIan Taylor2009-06-062-16/+16
|
* Fixing #2234 - fixing all of the tests broken by my bindaddress fixLuke Kanies2009-05-152-2/+36
| | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* Renaming Puppet::Node::Catalog to Puppet::Resource::CatalogLuke Kanies2008-12-181-1/+1
| | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* Changing the Cacher.invalidate method to Cacher.expire.Luke Kanies2008-11-111-1/+1
| | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* Fixing the String format (fixes #1522).Luke Kanies2008-08-201-0/+19
| | | | | | | | | The string format no longer provides any support methods, which means that I had to create to_multiple_s and from_multiple_s methods on the SSL classes. I created them in the base class and tested them just in the cert class. Signed-off-by: Luke Kanies <luke@madstop.com>
* Merge branch '0.24.x'Luke Kanies2008-06-142-39/+41
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * Replacing all two-space indents with four-spaceLuke Kanies2008-06-132-74/+74
| |
| * Adding ruby interpreter lines to the tests missing them.Luke Kanies2008-06-132-2/+6
| |
| * Adding execute bits to every test currently missing them.Luke Kanies2008-06-132-0/+0
| |
* | Using the new Cacher class for handling cached data.Luke Kanies2008-05-131-4/+1
| | | | | | | | | | This provides a single, global bit for determining whether a given piece of cached data is still valid.
* | The master and client now successfully speak xmlrpc using the new system.Luke Kanies2008-05-071-0/+2
| | | | | | | | | | | | The server is actually serving REST, but the client can't use it until we resolve the format and security issues that REST hasn't yet tackled.
* | Fixing the webrick integration tests to use the newly-functionalLuke Kanies2008-05-051-1/+7
| | | | | | | | SSL code.
* | Adding xmlrpc backward compatibility to the new Mongrel code.Luke Kanies2008-05-021-1/+1
| |
* | Adding xmlrpc support to webrick.Luke Kanies2008-05-022-1/+3
| | | | | | | | | | This provides the backward compatibility for webrick, and only Mongrel is left.
* | I think I've now got the Webrick SSL support working.Luke Kanies2008-04-281-0/+1
| | | | | | | | | | Now I just need to get xmlrpc working alongside REST in both mongrel and webrick.
* | Interim commit, since I want to work but have no network available.Luke Kanies2008-04-281-43/+55
| |
* | The certificate authority now uses a Host instance named 'ca'.Luke Kanies2008-04-171-1/+1
| | | | | | | | | | | | It previously was a subclass of Host, but this should make it easier to separate between the thing doing the signing and the thing managing the necessary files.
* | Oops; final fix on the integration test failures resultingLuke Kanies2008-04-151-1/+5
|/ | | | from my partial support for ssl in webrick.
* ensure that we only run the mongrel specs when mongrel is available as a featureRick Bradley2008-04-111-0/+2
|
* Much larger commit than I would like to land at once. This is all ↵Rick Bradley2008-04-112-40/+45
| | | | | | | | | | | | | | | | | | | | | 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-0/+85
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.