summaryrefslogtreecommitdiffstats
path: root/spec/unit
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Adding a hackish raw format.Luke Kanies2008-08-261-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | As the comment in the file says, we don't really have enough data to know what a good design would look like, and I think this format will be a bit of a one-off, so I'm just throwing up some barriers to keep people from doing silly things with it. Signed-off-by: Luke Kanies <luke@madstop.com>
| * | Adding suitability as a requirement for a format being supported.Luke Kanies2008-08-261-0/+5
| | | | | | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
| * | Removing the yaml conversion code from FileContent.Luke Kanies2008-08-261-24/+0
| | | | | | | | | | | | | | | | | | | | | | | | Also fixing some integration tests that were failing because of the change to the terminus selection code for file serving. Signed-off-by: Luke Kanies <luke@madstop.com>
| * | Causing the Indirection to fail if a terminus selection hook does not return ↵Luke Kanies2008-08-261-0/+16
| | | | | | | | | | | | | | | | | | a value. Signed-off-by: Luke Kanies <luke@madstop.com>
| * | Correcting whitespace in a testLuke Kanies2008-08-261-3/+3
| | | | | | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
| * | FileServing Configurations now expect unqualified files.Luke Kanies2008-08-261-17/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fits in with the fact that the indirection requests split URIs and set the request key to an unqualified path rather than a fully-qualified path. The whole system is unqualified end-to-end, now, except when you're specifically asking for a full, local file name. Signed-off-by: Luke Kanies <luke@madstop.com>
| * | Fixing whitespace in docs of some tests.Luke Kanies2008-08-261-4/+4
| | | | | | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
| * | Fixing the fileserving terminus selection hook.Luke Kanies2008-08-261-78/+78
| | | | | | | | | | | | | | | | | | | | | It now uses the fact that the indirection request does URI parsing, rather than doing the parsing on its own. Signed-off-by: Luke Kanies <luke@madstop.com>
| * | Special-casing 'file' URIs in the indirection requests.Luke Kanies2008-08-261-1/+21
| | | | | | | | | | | | | | | | | | | | | These just get converted to full file paths, since we know they will never pass over the wire. Signed-off-by: Luke Kanies <luke@madstop.com>
| * | Dividing server/port configuration responsibility between the REST terminus ↵Luke Kanies2008-08-262-31/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and the indirection request. Previously, the REST terminus did all of the configuration, but it required rewriting the request key if it was a URI because you can't have a uri in a uri (i.e., you can't use http://host/puppet://host/dist/file). Now the request parses the URI and sets host/port/key/protocol appropriately, and the REST terminus has its own overrides and defaults so that subclasses like certificate classes can provide specific values. Signed-off-by: Luke Kanies <luke@madstop.com>
| * | Fixing a test that relied on hash ordering.Luke Kanies2008-08-261-2/+2
| | | | | | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | | Merge branch '0.24.x'Luke Kanies2008-09-2314-5/+531
|\ \ \ | |/ / |/| / | |/ | | | | | | | | | | | | Conflicts: lib/puppet/metatype/container.rb lib/puppet/metatype/instances.rb lib/puppet/metatype/metaparams.rb lib/puppet/metatype/relationships.rb lib/puppet/metatype/schedules.rb
| * Removing some code in Parameter that is unnecessary.Luke Kanies2008-09-231-0/+11
| | | | | | | | | | | | | | | | | | It's duplicated in Property, but was only ever called if the instance was Property -- in other words, the base class new about its subclass, but the subclass overrode that method any way. Signed-off-by: Luke Kanies <luke@madstop.com>
| * Fixed #1595 - Internally, Property#retrieve is no longer calledLuke Kanies2008-09-232-0/+48
| | | | | | | | when no 'should' value is available for a resource.
| * Only apply splay the first runAndrew Shafer2008-09-211-0/+42
| | | | | | | | Issue 1491
| * fix failing hpux user specsAndrew Shafer2008-09-201-8/+4
| | | | | | | | | | | | | | feature 1508 Not sure these tests ever passed on any platform. Added some mocking to support the two tests.
| * Add rspec unit test for the append operatorBrice Figureau2008-09-214-1/+120
| | | | | | | | Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
| * Bug #1550 - Rework to avoid regressing rspec tests, add new rspec tests for ↵Paul Nasrat2008-09-201-3/+24
| | | | | | | | | | | | templatedir as a path Signed-off-by: Paul Nasrat <pnasrat@googlemail.com>
| * Fixed #1521 -- ldap user and group are now used with the default connectionLuke Kanies2008-09-171-0/+13
| | | | | | | | | | | | when available. Signed-off-by: Luke Kanies <luke@madstop.com>
| * Fixed #1572 -- file purging now fails if remote sources do not exist.Luke Kanies2008-09-161-0/+6
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
| * 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-204-10/+88
| | | | | | | | | | | | | | | | | | | | | | | | | | 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-202-42/+34
| | | | | | | | | | | | | | | | | | 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>
* | Certificates now work over REST.Luke Kanies2008-08-074-3/+53
| | | | | | | | | | | | | | | | | | 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-302-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>