summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | Merge branch '0.24.x'Luke Kanies2009-02-203-12/+38
|\| | | | | | | | | | | Conflicts: lib/puppet/type/file/content.rb spec/unit/type/file/content.rb
| * Fixing #1871 once and for all - contents are never printedLuke Kanies2009-02-183-8/+43
| | | | | | | | | | | | | | | | | | They were still being printed in noop mode. The fix was to use is_to_s and should_to_s methods, rather than 'change_to_s'. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Removing or fixing old testsLuke Kanies2009-02-198-605/+22
| | | | | | | | | | | | | | | | Most of these were just obsolete tests that have been sitting around and broke with recent internal changes. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Correctly handling URI escaping throughout the REST processLuke Kanies2009-02-1913-97/+57
| | | | | | | | | | | | | | | | | | | | This means, at the least, that we can now serve files via REST when they have spaces and other weird characters in their names. This involves a small change to many files. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Refactoring how the Settings file is parsedLuke Kanies2009-02-196-113/+169
| | | | | | | | | | | | | | | | | | | | | | | | | | The goal of this refactor was to use a cached attribute for the LoadedFile instance we use to monitor whether the file needs reparsing. We were getting tests that affected later tests because they were holding on to LoadedFile stubs, somehow. The other main change here is that the Settings#parse method now knows how to look up its own file path. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Relying on 'should_parse_config' in the 'puppet' applicationLuke Kanies2009-02-192-15/+0
| | | | | | | | | | | | | | | | There was some redundancy here, as the app was marked as needing to parse the config, but then the setup hook manually parsed it. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Providing better indirection authorization errorsLuke Kanies2009-02-193-1/+14
| | | | | | | | | | | | | | The errors now include the indirection and key, or the full URI used. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Adding pluginsyncing support to the IndirectorLuke Kanies2009-02-1929-1186/+973
| | | | | | | | | | | | | | | | | | This switches away from the use of terminii for each type of fileserving - it goes back to the traditional fileserving method, and is much cleaner and simpler as a result. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Moving Request and Fileset integration into Fileset.Luke Kanies2009-02-194-40/+70
| | | | | | | | | | | | | | It was previously in a helper module, TerminusHelper. I hope to actually remove that module entirely. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Switching the ModuleFiles Indirection terminus to the new Module/Env apiLuke Kanies2009-02-193-37/+49
| | | | | | | | | | | | Again, much cleaner and simpler. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Migrating the old FileServer to the new Module/Environment codeLuke Kanies2009-02-192-16/+14
| | | | | | | | | | | | | | The interface is *much* cleaner, and I'd removed one of the methods used in this code. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Using the Environments to handle a lot of Module searchingLuke Kanies2009-02-182-118/+57
| | | | | | | | | | | | | | | | | | | | Since Environments now know how to look for modules, a lot of the Module code was able to be pushed into them. Also moving some of the tests to instance-level tests, rather than just testing the class-level interfaces. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Environments now use their own modulepath method.Luke Kanies2009-02-182-5/+5
| | | | | | | | | | | | They were previously still using just the variable itself. Signed-off-by: Luke Kanies <luke@madstop.com>
* | The 'Environment' class can now calculate its modulepath.Luke Kanies2009-02-182-0/+58
| | | | | | | | | | | | | | | | | | | | | | This includes adding PUPPETLIB from the shell environment. I'm moving responsibility for this from the Module class, because nearly every method in Puppet::Module accepted 'environment' as its argument, which is a good sign that it's on the wrong class. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Added support for finding modules from an environmentLuke Kanies2009-02-182-0/+55
| | | | | | | | | | | | | | | | This uses the environment to search for the modules, rather than relying on the Puppet::Module class to know how to handle environments. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Adding support for finding all modules in a given path.Luke Kanies2009-02-182-0/+109
| | | | | | | | | | | | | | | | This 'each_module' method will be used by environments to find all or a given module, and will likely eventually be used internally, too. Signed-off-by: Luke Kanies <luke@madstop.com>
* | reformatting the environment testsLuke Kanies2009-02-181-15/+15
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Supporting multiple paths for searching for files.Luke Kanies2009-02-182-21/+29
| | | | | | | | | | | | | | This is, once again, used for plugins, which needs to search across multiple modules' plugin directories. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Adding support for merging multiple filesets.Luke Kanies2009-02-182-0/+60
| | | | | | | | | | | | | | This is required for plugins, which recurse across multiple directories. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Adding new methods to Puppet::Module.Luke Kanies2009-02-182-7/+57
| | | | | | | | | | | | | | | | | | | | | | | | There are now boolean methods to test whether a given kind of file is present in a given module. E.g, you can do: Puppet::Module.new("mod", "/my/path").plugins? There are also accessor-style methods that return the full path for a given kind of file. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Refactoring Puppet::Module a bit.Luke Kanies2009-02-182-27/+23
| | | | | | | | | | | | | | No behaviour change here, just some internal changes to make way for methods I want to add. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Only using the checksum cache when we're using a host_config catalogLuke Kanies2009-02-181-0/+2
| | | | | | | | | | | | | | | | Only host-configs actually load and store the state file, so any attempt to use that state will just result in lots of "initializing" and "creating" messages. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Fixing fileserving to support strings or symbolsLuke Kanies2009-02-184-5/+10
| | | | | | | | | | | | | | When used internally we would use symbols, but the REST transfers need to support strings. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Adding clarity to query string handling in REST callsLuke Kanies2009-02-187-19/+152
| | | | | | | | | | | | | | | | | | | | | | | | We previously only handled simple strings as values, but we know handle true and false as booleans, we URI-escape all strings, and we can yaml-encode and then escape arrays of strings. This could get abused a bit, in that we're just yaml-dumping anything that's an array, but it should be pretty safe. Mmmm, should. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Some small fixes to provide better debugging and load a libraryLuke Kanies2009-02-182-0/+2
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Providing better information when an exception is encountered during network ↵Luke Kanies2009-02-181-1/+1
| | | | | | | | | | | | communication Signed-off-by: Luke Kanies <luke@madstop.com>
* | Stubbing tests that were affecting other testsLuke Kanies2009-02-188-4/+30
| | | | | | | | | | | | | | | | | | | | | | These stubs are all for global configuration state. It's a known problem that these have to be stubbed, but we haven't been able to find a design yet that fixes this. At least these tests are no longer breaking other tests. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Fixing a warning in a testLuke Kanies2009-02-181-2/+2
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Fixing a syntactically invalid application testLuke Kanies2009-02-181-3/+3
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Move --version handling to Puppet::ApplicationBrice Figureau2009-02-1613-74/+29
| | | | | | | | Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* | Move puppetd to the Application Controller paradigmBrice Figureau2009-02-163-270/+749
| | | | | | | | Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* | Move puppetdoc to the Application Controller paradigmBrice Figureau2009-02-163-195/+543
| | | | | | | | Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* | Move ralsh to the Application Controller paradigmBrice Figureau2009-02-163-185/+398
| | | | | | | | Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* | Move puppetrun to Application Controller paradigmBrice Figureau2009-02-163-241/+494
| | | | | | | | Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* | Move pi to the Application Controller paradigmBrice Figureau2009-02-163-220/+303
| | | | | | | | Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* | Move puppetmasterd to Puppet::ApplicationBrice Figureau2009-02-163-166/+474
| | | | | | | | Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* | Move puppet to the Application Controller paradigmBrice Figureau2009-02-163-189/+449
| | | | | | | | Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* | Move filebucket to the Application Controller paradigmBrice Figureau2009-02-163-118/+326
| | | | | | | | Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* | Move puppetca to the Application Controller paradigmBrice Figureau2009-02-163-101/+210
| | | | | | | | Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* | Introducing the Application ControllerBrice Figureau2009-02-163-0/+725
| | | | | | | | Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* | Fixing broken filetype tests resulting from the loss of Type[]Luke Kanies2009-02-141-11/+1
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Fixing some tests that somehow broke in the merge to masterLuke Kanies2009-02-142-4/+9
| | | | | | | | | | | | | | | | | | | | I expect these failed in master but not 0.24.x because I'm better about stubbing calls to Facter in master. I stubbed these enough that they should continue to work. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Removing a test that was too dependant on order.Luke Kanies2009-02-141-4/+0
| | | | | | | | | | | | | | It wasn't a terribly useful test anyway, since no one depends on that individual configuration. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Merge branch '0.24.x'Luke Kanies2009-02-141-2/+2
|\|
| * Minor fix to launchd testsJames Turnbull2009-02-151-2/+2
| |
* | Merge branch '0.24.x'Luke Kanies2009-02-1413-106/+186
|\| | | | | | | | | Conflicts: test/ral/manager/type.rb
| * Fix #1972 - ActiveRecord fixes resulted in broken testsBrice Figureau2009-02-151-3/+4
| | | | | | | | | | | | | | Fix #1930 was not complete, with some typos and misuse of unused code paths in the regular puppetmaster use case. Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
| * Fix spec test for launchd service provider to work with new service status ↵Nigel Kersten2009-02-151-1/+9
| | | | | | | | | | | | method and add two new status tests. Now ensures that given the correct input, the correct status for the launchd service is returned.
| * Fixing a test I broke in commit:"897539e857b0da9145f15648b6aa2ef124ec1a19".Luke Kanies2009-02-141-3/+0
| | | | | | | | | | | | I hadn't removed the call to 'prefetch' on the instance in the test. Signed-off-by: Luke Kanies <luke@madstop.com>
| * Removing a no-longer-valid test.Luke Kanies2009-02-141-40/+0
| | | | | | | | | | | | | | The fix for #1884 removed this no-longer-needed feature, so this test is now unnecessary. Signed-off-by: Luke Kanies <luke@madstop.com>