summaryrefslogtreecommitdiffstats
path: root/spec/integration
Commit message (Collapse)AuthorAgeFilesLines
...
| * Adding execute bits to every test currently missing them.Luke Kanies2008-06-133-0/+0
| |
* | Fixing #1258 -- Removing a Rails idiom.Luke Kanies2008-05-251-2/+2
| | | | | | | | | | | | This idiom is only functional when you have Rails loaded, which is why it was failing for others but not me.
* | Merge branch '0.24.x'Luke Kanies2008-05-203-2/+16
|\| | | | | | | | | | | | | | | | | | | Conflicts: CHANGELOG spec/integration/defaults.rb spec/integration/node/catalog.rb spec/unit/rails.rb spec/unit/type/mount.rb
| * Mocking Facter in an integration test, so it works with no networkingLuke Kanies2008-05-191-0/+6
| |
| * Modified the 'factpath' setting to automatically configureLuke Kanies2008-05-161-0/+17
| | | | | | | | | | Facter to load facts there if a new enough version of Facter is used.
| * Duh, fixing all of the paths being loaded for spec in the moved tests.Luke Kanies2008-05-151-1/+1
| |
| * Moving all tests that are in 'ral' up a level.Luke Kanies2008-05-151-0/+0
| | | | | | | | | | This directory only existed as an organizational method, and the code never matched it, so I'm fixing it.
* | Using the new Cacher class for handling cached data.Luke Kanies2008-05-1310-32/+16
| | | | | | | | | | This provides a single, global bit for determining whether a given piece of cached data is still valid.
* | The CRL is now automatically used or ignored.Luke Kanies2008-05-072-18/+1
| | | | | | | | | | | | | | | | | | Previously, you had to configure whether you wanted the CRL or not, which resulted in errors all the time when it was configured but unavailable. Now, Puppet will always create and try to use it, but you won't get failures if it's unavailable.
* | The master and client now successfully speak xmlrpc using the new system.Luke Kanies2008-05-073-0/+113
| | | | | | | | | | | | 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 HttpPool module to get rid of an infinite loop.Luke Kanies2008-05-062-3/+20
| | | | | | | | | | | | | | | | | | 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 REST infrastructure now correctly the SSL certificates.Luke Kanies2008-05-051-408/+428
| | | | | | | | | | | | | | I don't think the whole thing is done, but at least the basic flows are in place. Now it's just a question of doing real-world tests and fleshing out the unit tests as necessary.
* | Fixing the webrick integration tests to use the newly-functionalLuke Kanies2008-05-051-1/+7
| | | | | | | | SSL code.
* | The Certificate Authority now automatically creates a CRL when appropriate.Luke Kanies2008-05-051-1/+11
| | | | | | | | This requires less setup and configuration on the part of the user.
* | Fixing a critical problem in how CRLs were saved and moving SSL Store ↵Luke Kanies2008-05-051-0/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | responsibilities to the SSL::Host class. I was previously saving invalid CRLs unless they'd had a revocation done in them; this commit fixes them so that they're always valid. Also, I've added to SSL::Host the ability to generate a valid SSL Store, suitable for validation. This is now used by Webrick and can be used by the http clients, too. This should have been two commits, but I'm kind of down the rabbit hole ATM.
* | The CA now initializes itself.Luke Kanies2008-05-051-0/+2
| | | | | | | | | | | | | | I realized that it never made sense to have a CA that didn't know how to initialize itself, so we now have a singleton method for the CA, and it also automatically initializes itself.
* | 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-283-1/+39
| | | | | | | | | | 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
| |
* | Temporarily disabling the revoke/verify test in the CA.Luke Kanies2008-04-191-3/+5
| | | | | | | | | | It looks like it's not taking the CRL into account, so I can't seem to actually get a cert to fail verification.
* | Finishing the interface between the CA and the CRL.Luke Kanies2008-04-191-1/+15
| | | | | | | | | | | | Certificate revocation now works, the CA knows how to generate the CRL, and the SSL::Host class knows how to configure the CRL class for indirection.
* | All SSL terminus classes now force the CA information into the right place.Luke Kanies2008-04-181-0/+10
| | | | | | | | | | | | | | | | | | Without this, then you could end up duplicating your CA key into the normal directory depending on how caching was set up. Again, this design aspect isn't the most straightforward, but at least it's functional now.
* | Switching the SSL::Host class to return Puppet instances.Luke Kanies2008-04-171-1/+1
| | | | | | | | | | | | | | | | | | Previously, the class was returning OpenSSL instances (e.g, OpenSSL::X509::Certificate) instead of Puppet instances (e.g., Puppet::SSL::Certificate). This made some things easier, but it made them asymmetric (e.g., you assigned the key as a Puppet instance but got back an OpenSSL instance), and it also reduced your flexibility and introspectiveness.
* | Adding integration tests for a lot of the SSL code.Luke Kanies2008-04-173-0/+233
| | | | | | | | | | This flushed out some problems, and things mostly look good now, but I don't think we're quite there yet.
* | 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.
* | Fixing an integration test of the rest terminus; it wasLuke Kanies2008-04-151-1/+5
|/ | | | | | broken by my incomplete cert support in webrick. I just stubbed out the cert usage for now; once all the cert stuff is done we'll need to go back and unstub it.
* Fixishing some pending tests, including filling inLuke Kanies2008-04-111-2/+8
| | | | the connection information.
* Making the changes necessary to get the REST supportLuke Kanies2008-04-111-11/+9
| | | | | to work with the current state of the indirection work, including using a request object and an expiration date.
* adding REST save support, with integration tests. A handful of unit tests ↵Rick Bradley2008-04-111-2/+91
| | | | in that area now need to be updated.
* Added support for destroy/DELETE over REST (including units & integrations ↵Rick Bradley2008-04-111-2/+74
| | | | | | | | on both webrick & mongrel). Added pending specs for the trivialities in the REST network_fetch and network_delete methods. Refactored YAML exception detection out into a private helper method.
* updating search integration specs to include webrickRick Bradley2008-04-111-4/+59
|
* making search work over REST, w/ unit & integration specsRick Bradley2008-04-111-4/+59
|
* placeholders for integration specs on final REST methodsRick Bradley2008-04-111-0/+24
|
* ensure that we only run the mongrel specs when mongrel is available as a featureRick Bradley2008-04-112-0/+4
|
* bringing Indirector::REST specs to mongrel-land as well.Rick Bradley2008-04-111-44/+112
|
* exceptions on remote end now properly passed to local end via REST and ↵Rick Bradley2008-04-111-3/+3
| | | | re-raised (integration-tested)
* Much larger commit than I would like to land at once. This is all ↵Rick Bradley2008-04-113-49/+110
| | | | | | | | | | | | | | | | | | | | | 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.
* a trivial integration test to test whether the RESTful indirection terminus ↵Rick Bradley2008-04-111-0/+35
| | | | has a remote shot at working; will need to be upgraded to actually be useful
* 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.
* Fixing the expire method (it wasn't using a requestLuke Kanies2008-04-101-1/+8
| | | | | | internally), and fixing the Facts class so it auto-expires any associated cached nodes when facts are saved.
* Moved the request creation into the IndirectionLuke Kanies2008-04-101-0/+4
| | | | | | class instead of the Indirector module. Also, added an 'expire' method to the indirector, so there's an easy way to expire cached instances.
* Ported the rest of the indirection terminuses over toLuke Kanies2008-04-084-31/+143
| | | | expecting requests instead of having a random interface.
* Intermediate commit.Luke Kanies2008-04-082-4/+40
| | | | | | | | | | | | | | | | | This commit adds a Request instance into the indirection, pushing it all the way to the terminus instances. It's a big commit because it requires modifying every terminus class. There are still some thorny design issues. In particular, who should be responsible for making the request object? I've tried having both the indirection class and the Indirector module creating it, and both have their issues. Also, the Catalog class previously allowed passing Node instances directly to the find method, which is now no longer possible because the Request class would treat the node as the instance being found. We need the request class to have two modes, one when it's passed an instance and one when it's passed a key.
* Fixing the integration tests related to the destroy fix. Yay.Luke Kanies2008-04-082-2/+2
|
* Fixing a unit test for node integrationLuke Kanies2008-03-181-9/+2
|
* Fixing an integration test so it cleans up after itselfLuke Kanies2008-02-281-0/+5
|
* Fixing a test that was failing when a user-specificLuke Kanies2008-02-231-2/+2
| | | | fileserver.conf actually exists.
* Fixing #924 -- clearing the configuration cache before andLuke Kanies2007-11-261-0/+3
| | | | after the test.