summaryrefslogtreecommitdiffstats
path: root/spec/unit/network/http_pool.rb
Commit message (Collapse)AuthorAgeFilesLines
* [#3994] rename the specs to have _spec.rb at the endMarkus Roberts2010-06-231-206/+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
* Fix #1842 Net::HTTP#enable_post_connection_check doesn't work anymoreJesse Wolfe2010-01-301-17/+9
| | | | | | | | | | The setting enable_post_connection_check doesn't exist on very many versions of ruby, and on those systems there's no way to disable domain name checking on HTTPS. The recommended work-around is to replace certificates when they have incorrect hostnames. Signed-off-by: Jesse Wolfe <jes5199@gmail.com>
* Fix #2517 - Stack overflow when CA cert missingMarkus Roberts2009-08-131-1/+10
| | | | | | | | | | | | | | This was a "There's A Hole In The Bucket" problem caused when trying to establish a connection to get a certificate before there was a certificate with which to establish the connection, ad infinitum. The solution was to test for the presence of the CA cert as well as the host cert before attempting to use them. This patch modifies existing tests to pass with the new code (by stubbing out the additional FileTests) and adds a new test which catches the original problem. Signed-off-by: Markus Roberts <Markus@reality.com>
* Fixing #1729 - puppetmasterd can now read certs at startupLuke Kanies2008-12-181-19/+2
| | | | | | | | | | The main aspect of this solution is to create a site-wide Puppet::SSL::Host instance to cache ssl key and certificate, so that by the time we've switched UIDs, we've got the key and cert in memory. Then webrick just uses that, rather than creating a new Host instance. Signed-off-by: Luke Kanies <luke@madstop.com>
* Adding more file tests and fixing conflicting testsLuke Kanies2008-11-151-0/+4
| | | | 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>
* Merge branch '0.24.x'Luke Kanies2008-05-251-3/+1
|\ | | | | | | | | | | | | Conflicts: CHANGELOG lib/puppet/transaction.rb
| * Fixing an inaccurate test so the tests will run correctly in all branches.Paul Lathrop2008-05-231-3/+1
| |
* | Using the new Cacher class for handling cached data.Luke Kanies2008-05-131-18/+1
| | | | | | | | | | This provides a single, global bit for determining whether a given piece of cached data is still valid.
* | Fixing some broken tests.Luke Kanies2008-05-071-0/+10
| | | | | | | | | | | | | | The HttpPool module now removes its cached ssl_host instance when clearing its cache. This is really only useful for testing, but it correctly causes the pool to use new certificates when they're available.
* | Fixing the HttpPool module to get rid of an infinite loop.Luke Kanies2008-05-061-2/+11
| | | | | | | | | | | | | | | | | | We can't have the HttpPool class use the Indirector to see if it has a cert available, because it might be being used to try to download one, which would cause it to make an http instance, which would cause it to... Well, you get the idea. Adding and fixing a few other tests I ran into on the way.
* | The http pool manager now uses new-style certificate management.Luke Kanies2008-05-051-94/+72
|/ | | | | It uses an instance of SSL::Host for getting its certificate and ssl store.
* Fixed some tests broken by #1176James Turnbull2008-04-191-8/+8
|
* Disabling http keep-alive as a means of preventing #1010.Luke Kanies2008-03-241-96/+118
| | | | | | | There is now a constant in Puppet::Network::HttpPool that will disable or enable this feature, but note that we determined that it can cause corruption, especially in file serving (but it's client-side corruption).
* Fix tests depending on the Puppet[:localcert] file existing using stubsAndrew Shafer2008-03-041-26/+13
| | | | Some minor refactoring, pulling repeated setup up to 'before'
* Fixing a test that was actually reading in keysLuke Kanies2008-02-211-0/+4
| | | | | from the filesystem and failed when those keys were unreadable.
* Removing the ability to disable http-keep alive,Luke Kanies2007-12-191-18/+8
| | | | since it didn't work and is now unnecessary.
* Entirely refactoring http keep-alive. There's nowLuke Kanies2007-12-191-0/+237
a central module responsible for managing the http pool (Puppet::Network::HttpPool), and it also handles setting certificate information. This gets rid of what were otherwise long chains of method calls, and it makes the code paths much clearer.