summaryrefslogtreecommitdiffstats
path: root/spec
Commit message (Collapse)AuthorAgeFilesLines
...
| * Fixing #1576 - moving all of the Puppet::Type code back into type.rb.Luke Kanies2008-09-151-1/+1
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
| * Fixes #1455 - Adds HP-UX support for user typeJames Turnbull2008-09-061-0/+29
| |
| * Runit service providerBrice Figureau2008-08-291-0/+117
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This provider manages daemons running supervised by Runit[1]. It tries to detect the service directory, with by order of preference: * /service * /var/service * /etc/service The daemon directory should be placed in a directory that can be by default in: * /etc/sv * /var/lib/service or this can be overriden in the service resource parameters: service { "myservice": provider => "runit", path => "/path/to/daemons"; } This provider supports out of the box: * start/stop * enable/disable * restart * status [1]: http://smarden.sunsite.dk/runit/
| * Daemontools service providerBrice Figureau2008-08-291-0/+124
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This provider manages daemons running supervised under D.J.Bernstein daemontools. It tries to detect the service directory, with by order of preference: * /service * /etc/service * /var/lib/svscan The daemon directory should be placed in a directory that can be by default in: * /var/lib/service * /etc or this can be overriden in the service resource parameters: service { "myservice": provider => "daemontools", path => "/path/to/daemons"; } This provider supports out of the box: * start/stop (mapped to enable/disable) * enable/disable * restart * status Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* | Adding parameter and URL support to the REST terminus.Luke Kanies2008-08-205-11/+109
| | | | | | | | | | | | | | | | | | | | | | | | | | Previously, the server side correctly pulled parameters out of the query strings, but the REST terminus never passed them on. It does now, at least for finding and searching. It appears that at least WEBrick doesn't support parameters for anything other than forms and GET. I've also added the ability for the REST terminus to pull host/port information from the request key, if it's a URI. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Merge branch '0.24.x'Luke Kanies2008-08-201-0/+52
|\|
| * Fixed #1508 - Add HP-UX package provider.Mark Plaksin2008-08-201-0/+52
| |
* | Fixing the String format (fixes #1522).Luke Kanies2008-08-203-42/+53
| | | | | | | | | | | | | | | | | | 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>
* | Removing dead-end file work as promised.Luke Kanies2008-08-203-358/+0
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Adding files temporarily, since I've decided this work is a dead-end.Luke Kanies2008-08-203-0/+358
| | | | | | | | | | | | | | I'm merely adding these so that they're in the history if I decided to look at them again. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Fixing #1514 - format tests now work again.Luke Kanies2008-08-201-11/+11
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Merge branch '0.24.x'Luke Kanies2008-08-184-4/+63
|\| | | | | | | | | | | | | Conflicts: CHANGELOG test/util/posixtest.rb
| * Fixes #1274 - allow class names to start with numbersJames Turnbull2008-08-171-0/+9
| |
| * Added tests for TemplateWrapper's use of Scope#to_hash.Luke Kanies2008-08-091-1/+12
| | | | | | | | | | | | We should deprecate the method_missing stuff in 0.25. Signed-off-by: Luke Kanies <luke@madstop.com>
| * Fixing an ldap connectivity testLuke Kanies2008-08-091-3/+13
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
| * Specs for yaml indirector .search - I'm still learning!James Turnbull2008-08-011-0/+29
| | | | | | | | Updated, I was calling .base myself instead of the actual string
* | Fixing the SSL::Host#waitforcert method.Luke Kanies2008-08-071-13/+37
| | | | | | | | | | | | | | It now works the way puppetd needs it to, rather than the way I thought it would need to work. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Adding logging when files are removed.Luke Kanies2008-08-072-1/+16
| | | | | | | | | | | | This is currently mostly useful for puppetca. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Removing now-obsolete the wait-for-cert module.Luke Kanies2008-08-071-135/+0
| | | | | | | | | | | | This functionality has moved into the SSL::Host class. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Documenting a bit of a testLuke Kanies2008-08-071-1/+4
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Certificates now work over REST.Luke Kanies2008-08-077-3/+276
| | | | | | | | | | | | | | | | | | All of the format work is done, they all support plaintext successfully, and I've got integration tests that demonstrate that it actually works. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Caching the SSL store for the SSL Host.Luke Kanies2008-08-071-1/+1
| | | | | | | | | | | | | | | | | | We were creating a new SSL store every time, which caused problems during testing -- it created an infinite loop when trying to create the store while looking up the CRL. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Making all certificates only support the plaintext format.Luke Kanies2008-08-044-0/+16
| | | | | | | | | | | | | | None of them actually support yaml or marshal by default, and plaintext is easiest anyway. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Adding wait_for_cert functionality to the ssl host class.Luke Kanies2008-08-041-0/+42
| | | | | | | | | | | | This essentially deprecates the CertHandler module. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Adding a plaintext network format.Luke Kanies2008-08-041-0/+42
| | | | | | | | | | | | Certs don't seem to support yaml, for some reason. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Fixing a group test that failed after merging 0.24.xLuke Kanies2008-07-311-4/+0
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Correctly handling when REST searches return nothing.Luke Kanies2008-07-303-1/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | We return a 404, which the client can correctly handle. That wasn't the actual problem causing failing tests, of course -- the problem was that one side of our stub was autodetecting marshal, and the other side was forcing yaml, which strangely didn't work. It was only happening with searching, though, not finding et al. The 'search returning nil' problem was a bit of a red herring but needed to be fixed, too. Signed-off-by: Luke Kanies <luke@madstop.com>
* | The REST formats are now fully functional, with yaml and marshal support.Luke Kanies2008-07-301-1/+66
| | | | | | | | | | | | | | | | This is the last of the REST plumbing. The only flaw right now is that the formats are managed by name rather than by mimetype, which I'll fix next. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Adding some support for case insensivity in format names.Luke Kanies2008-07-302-2/+17
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Moving validation from FormatHandler to Format.Luke Kanies2008-07-302-11/+4
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Moving functionality out of the FormatHandler into the Format class.Luke Kanies2008-07-302-96/+186
| | | | | | | | | | | | | | The Format class now takes care of deciding whether it's supported, and it also does method dispatch to classes and instances as necessary. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Searching again works over REST, including full content-type translation.Luke Kanies2008-07-293-44/+65
| | | | | | | | | | | | | | | | | | The format management is a bit clunky right now, though, so I need to fix how they're managed. Some of these tests fail, but 99% of the remaining work is in other classes so I wanted this as a discrete commit. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Fixing the format_handler tests so that they clean up after themselves.Luke Kanies2008-07-291-0/+7
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Fixing a test I broke while rebasingLuke Kanies2008-07-291-0/+5
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Fixing a test to be order-independent.Luke Kanies2008-07-291-1/+1
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Adding rudimentary support for directly managing formats.Luke Kanies2008-07-293-0/+96
| | | | | | | | | | | | | | | | | | | | | | | | | | We have a simple Format class, and the FormatHandler module is responsible for managing its instances, including providing access by mime type or name. It will soon replace some of the testing functionality in the FormatHandler module, but for now, it's just there as a name => mimetype converter, which makes it seem a lot like overkill. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Adding support for rendering and converting multiple instances.Luke Kanies2008-07-291-9/+36
| | | | | | | | | | | | | | It's a touch hackish in terms of design, but it should work, and it's the last major piece of plumbing necessary for REST support. Signed-off-by: Luke Kanies <luke@madstop.com>
* | All error and format handling works over REST except searching.Luke Kanies2008-07-294-47/+76
| | | | | | | | | | | | | | | | | | Searching operates on multiple instances, and I have not yet figured out how we should handle converting multiple instances to a given format -- we can't use the instance method (e.g., to_yaml), because it would be on Array instead of the class we're operating on. That would work for yaml, but not, for instance, for xml.
* | Drastically simplifying the REST implementation tests.Luke Kanies2008-07-292-627/+189
| | | | | | | | | | | | | | | | | | Nearly all of the tests are now written just once, in the Handler module. The Mongrel and Webrick tests just validate that they provide the interface and how they do so. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Adding explicit tests for the HTTP::Handler module.Luke Kanies2008-07-291-0/+411
| | | | | | | | | | | | | | | | | | | | | | This will help to remove a ton of duplication among the Mongrel and Webrick tests, and it also helps make the interface between the servers and the handler more explicit, and thus more maintainable. I still need to switch all of the servers over. Signed-off-by: Luke Kanies <luke@madstop.com>
* | The REST terminus now uses the content-type and http result codes.Luke Kanies2008-07-295-262/+196
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Things are currently broken -- this is a checkpoint commit so that it's safe to make mistakes and will probably be removed. Signed-off-by: Luke Kanies <luke@madstop.com> The REST terminus now completely does error handling and serialization. The Integration tests are still completely broken. Signed-off-by: Luke Kanies <luke@madstop.com> The Mongrel and Webrick rest handlers no longer yaml-encode exceptions. They just store the exceptions in plain text in the message body. They also set the status to 400, rather than 404. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Removing a now-obsolete pending test.Luke Kanies2008-07-291-8/+0
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | The REST terminus now provides an Accept header with supported formats.Luke Kanies2008-07-291-5/+34
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Using the FormatHandler in indirected classes automatically.Luke Kanies2008-07-292-5/+30
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com> Changing the FormatHandler#render method to render_to Signed-off-by: Luke Kanies <luke@madstop.com> Adding the ability for the format handler to query supported formats. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Adding a FormatHandler module for managing format conversions.Luke Kanies2008-07-291-0/+73
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Merge branch '0.24.x' into mergingLuke Kanies2008-07-2925-230/+385
|\| | | | | | | | | | | Conflicts: test/ral/type/filesources.rb
| * Revert "Merging fsweetser's selinux patch against 0.24.4"James Turnbull2008-07-201-78/+0
| | | | | | | | This reverts commit f16da4250c16aeab932a81a349df059c69d7ee23.
| * Merging fsweetser's selinux patch against 0.24.4Brett Lentz2008-07-201-0/+78
| |
| * Fixing #1438 -- mongrel and module tests now pass.Luke Kanies2008-07-202-2/+6
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
| * Fixed all of the fileserving termini so they use indirection requests.Luke Kanies2008-07-189-150/+188
| | | | | | | | | | | | | | | | This looks like a much larger commit than it is -- it doesn't change any behaviour at all, it just adds some integration tests (which expose the problem) and then switches from an ad-hoc api to a request-based api. Signed-off-by: Luke Kanies <luke@madstop.com>