| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
| |
| |
| |
| | |
specifying the terminus class. The individual ssl
classes now work, but the ssl host class doesn't yet.
|
| |
| |
| |
| | |
thing to readable human text.
|
| | |
|
| |
| |
| |
| | |
revocation list.
|
| |
| |
| |
| | |
and the SSL::Host class.
|
| |
| |
| |
| |
| |
| | |
requests and return certificates. There's still plenty
more work to do, but I'm probably not much more than a
day away from redoing puppetca to use this code.
|
| |
| |
| |
| |
| |
| | |
I probably am going to skip the tests for the rest, since
the code is unlikely to ever change, and it's going to be
a royal pain to test.
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
The tests are basically entirely absent still, but
the structure is all there.
|
| |
| |
| |
| |
| |
| |
| | |
keys, certificates, and requests now work, including
talking to the certificate authority. Now we just
need the authority itself, along with the necessary
REST terminii.
|
| |
| |
| |
| | |
classes, finally including the certificate requests.
|
| |
| |
| |
| |
| | |
with the existing cert/key store. Certificate requests
are not yet handled, nor are the ca-specific collections.
|
| | |
|
| |
| |
| |
| |
| | |
indirection terminii are done. I need to move most of
the test code to a shared behaviour now.
|
| |
| |
| |
| | |
functionally connected to any kind of indirection.
|
| | |
|
| |
| |
| |
| | |
keys kind of work.
|
| | |
|
| |
| |
| |
| |
| | |
ssl. The tests can't be completed until the certificate work
is all done.
|
|\|
| |
| |
| |
| |
| | |
Conflicts:
spec/unit/network/server.rb
|
| |
| |
| |
| | |
the connection information.
|
| |
| |
| |
| |
| | |
to work with the current state of the indirection work,
including using a request object and an expiration date.
|
| |
| |
| |
| |
| | |
the results of destroying, so they can return true
or false.
|
| | |
|
| |
| |
| |
| | |
overridden to lookup the real connection details
|
| | |
|
| |
| |
| |
| | |
in that area now need to be updated.
|
| |
| |
| |
| | |
hella problems with testing save without caching; judging my luke's blog this is going to be rewritten somehow anyway
|
| |
| |
| |
| | |
Indirector::REST
|
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| | |
|
| | |
|
| |
| |
| |
| | |
Refactored specs to put some of the lower-level find/save/search/destroy unit tests under their own contexts.
|
| |
| |
| |
| | |
re-raised (integration-tested)
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| | |
(Puppet::Node::Rest), so we can do Puppet::Node.terminus_class = :rest
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| | |
legacy networking code; it was a mistake to include stubbed support for it in the new code); removing
|
| | |
|
| | |
|
|\| |
|
| |
| |
| |
| |
| |
| |
| | |
the [] accessor method (they previously threw an exception when
this method was used with properties). This shouldn't have any
affect functionally; it just makes the method equivalent to 'should'
for properties, but it works for all attribute types now.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
compile node configurations, rather than using the Configuration
handler, which was never used directly. I removed the Configuration
handler as a result.
Modified the 'master' handler (responsible for sending configurations
to clients) to always return Time.now as its compile date, so
configurations will always get recompiled.
|
| | |
|
| |
| |
| |
| |
| |
| | |
the catalog. The client will now always recompile, assuming it
can reach the server. It will still use the cached config if
there's a failure.
|
| |
| |
| |
| | |
name as a directory with no failures.
|
| |
| |
| |
| |
| |
| | |
internally), and fixing the Facts class so it
auto-expires any associated cached nodes when facts
are saved.
|
| |
| |
| |
| |
| |
| | |
class instead of the Indirector module. Also, added
an 'expire' method to the indirector, so there's an easy way
to expire cached instances.
|
| | |
|