summaryrefslogtreecommitdiffstats
path: root/spec
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Merge branch '0.24.x'James Turnbull2008-12-276-12/+273
|\ \ \ | |/ / |/| / | |/ | | Conflicts: CHANGELOG
| * Not using a temporary file when locking files for writing.Luke Kanies2008-12-152-40/+9
| | | | | | | | | | | | | | | | | | | | The temporary file was not actually useful, because we could never really get atomic renames, for annoying, complicated reasons. This hopefully finally fixes #1812. Signed-off-by: Luke Kanies <luke@madstop.com>
| * Modifying the corruption-checking test.Luke Kanies2008-12-151-3/+3
| | | | | | | | | | | | | | | | | | It is now more likely to fail if there's a problem, since the yaml should be corrupt, causing a yaml failure. Also removing the equivalent test from the Storage module. Signed-off-by: Luke Kanies <luke@madstop.com>
| * Issue 1804 VDev with the same devices should be in syncAndrew Shafer2008-12-152-3/+106
| | | | | | | | | | Added VDev and MultiVDev properties to the ZPool type to handle logic Vdevs with the same devices are now in sync even if the order changes
| * Fixing #1812 (hopefully) - adding read and write locks to yaml.Luke Kanies2008-12-121-7/+14
| | | | | | | | | | | | | | | | It's obviously not really possible to test that this fixes it, but I'm confident that the locks work, and now we're using them, so it *should*. Signed-off-by: Luke Kanies <luke@madstop.com>
| * Preparing to fix #1812 - Moving locking code to a moduleLuke Kanies2008-12-123-2/+184
| | | | | | | | | | | | | | This moves the locking code out of Puppet::Util into a separate module, to make the code cleaner. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Fixing #1729 - puppetmasterd can now read certs at startupLuke Kanies2008-12-183-30/+69
| | | | | | | | | | | | | | | | | | | | The main aspect of this solution is to create a site-wide Puppet::SSL::Host instance to cache ssl key and certificate, so that by the time we've switched UIDs, we've got the key and cert in memory. Then webrick just uses that, rather than creating a new Host instance. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Canonicalizing Setting section names to symbols.Luke Kanies2008-12-181-0/+5
| | | | | | | | | | | | | | | | | | I thought I was already using symbols everywhere so it didn't matter, but there are a few places (e.g., the process name) where they were strings, and that made things not work so much. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Fixing all of the test/ tests I broke in previous dev.Luke Kanies2008-12-182-8/+18
| | | | | | | | | | | | | | | | | | Most of these are straightforward changes to the tests, but a couple required small refactorings (e.g., References can now be created with Puppet::Type instances, and they know how to extract the type/title from them). Signed-off-by: Luke Kanies <luke@madstop.com>
* | Deprecating the Puppet::Type.create.Luke Kanies2008-12-1828-189/+189
| | | | | | | | | | | | | | This method is no longer necessary; you can use the normal 'new' class method. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Deprecating 'Puppet.type'; replacing all instances with Puppet::Type.typeLuke Kanies2008-12-1810-24/+24
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Finishing the work to use Puppet::Resource instead of TransObjectLuke Kanies2008-12-188-37/+144
| | | | | | | | | | | | | | | | | | | | | | | | This was a complicated project because TransObject had made its way into too many classes. The usage by Util::Settings was particularly nefarious. Refactoring and fixing this exposed some other issues. The main complication, though, was the extent to which the Puppet::Type class depended on TransObject. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Adding name/namevar abstraction to Puppet::Resource.Luke Kanies2008-12-181-1/+49
| | | | | | | | | | | | | | This hopefully provides a single place to manage this complexity, and I'll be using it to simplify Puppet::Type. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Supporting a nil expirer on cacher objects.Luke Kanies2008-12-181-0/+15
| | | | | | | | | | | | | | | | | | | | This works for those classes like Puppet::Type that use an expirer that isn't always present (they use their catalog as an expirer). The behaviour is now that if there is no expirer, expire() is a no-op and all data is considered expired all the time, so it's always fresh. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Setting resource defaults immediately.Luke Kanies2008-12-181-0/+10
| | | | | | | | | | | | | | This makes it easier for later parameters to depend on the values of earlier parameters. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Refactoring the Settings class to use Puppet::ResourceLuke Kanies2008-12-182-142/+301
| | | | | | | | | | | | | | It also now uses the Catalog instead of the recursive TransObject stuff. Signed-off-by: Luke Kanies <luke@madstop.com>
* | TransObject is nearly deprecated now.Luke Kanies2008-12-185-98/+185
| | | | | | | | | | | | | | | | | | This is all of the plumbing work, the only real thing left to do is to fix the Settings class so that it uses Puppet::Resource instances instead of TransObject and TransBucket. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Simplifying the initialization interface for ReferencesLuke Kanies2008-12-181-0/+10
| | | | | | | | | | | | | | | | | | You previously had to call new(nil, "Foo[bar]") if you just had the resource reference as a string. Now you can call new("Foo[bar]"), but the old behaviour works, too. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Replacing TransObject usage with Puppet::ResourceLuke Kanies2008-12-182-0/+125
| | | | | | | | | | | | | | | | | | This completely reorganizes how RAL resources are initialized, and in the process I was able to remove a lot of code (I removed other apparently obsolete code at the same time). Signed-off-by: Luke Kanies <luke@madstop.com>
* | Renaming the "Catalog#to_type" method to "Catalog#to_ral"Luke Kanies2008-12-185-10/+13
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Using Puppet::Resource to convert parser resources to RAL resourcesLuke Kanies2008-12-182-27/+8
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Adding resource convertion to the parser resourcesLuke Kanies2008-12-181-0/+80
| | | | | | | | | | | | | | Also uses Puppet::Resource's method for creating transportable resources. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Adding equality testing to Puppet::Resource::ReferenceLuke Kanies2008-12-181-0/+16
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Correcting whitespace and nested describes in Puppet::Resource::CatalogLuke Kanies2008-12-181-665/+667
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Renaming Puppet::Node::Catalog to Puppet::Resource::CatalogLuke Kanies2008-12-1818-97/+97
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Renaming Puppet::ResourceReference to Puppet::Resource::ReferenceLuke Kanies2008-12-092-27/+27
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Adding Trans{Object,Bucket} backward compatibility to Puppet::ResourceLuke Kanies2008-12-092-0/+91
| | | | | | | | | | | | This is further progress toward #1808. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Starting on #1808 - Added a base resource class.Luke Kanies2008-12-092-0/+204
| | | | | | | | | | | | | | | | | | | | | | This class borrows heavily from the Puppet::Parser::Resource class and from Puppet::TransObject, partially because it will hopefully eventually supplant both of them. The class isn't used at all yet; now we need to go through the codebase and remove everything related to TransObject. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Removing the "clear" from the macauthorization testsLuke Kanies2008-12-091-6/+1
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Merge branch '0.24.x'Luke Kanies2008-12-098-15/+280
|\| | | | | | | | | | | | | | | | | Conflicts: CHANGELOG lib/puppet/type/tidy.rb spec/unit/type/file/ensure.rb spec/unit/type/tidy.rb
| * Fix ZFS autorequire testAndrew Shafer2008-12-081-19/+19
| | | | | | | | Couldn't find a default provider because the world is not my laptop
| * Fix launchd service test on non-OSX platformsJames Turnbull2008-12-091-1/+1
| |
| * Fix the spec tests to work on other platforms, do the confine around OS X ↵Nigel Kersten2008-12-092-84/+76
| | | | | | | | versions more sanely
| * Bug #1803 Zfs should auto require the ancestor file systemsAndrew Shafer2008-12-081-0/+17
| |
| * Refactor #1802 Use 'zfs get -H -o value' instead of parsing output for valueAndrew Shafer2008-12-081-2/+2
| | | | | | | | just simplifying code
| * Fixing #1800 - tidy now correctly ignores missing files and directoriesLuke Kanies2008-12-081-0/+8
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
| * Fixing #1750 again - All of the properties and now :ensure check replace?Luke Kanies2008-12-081-0/+21
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
| * spec tests for type and provider and some code cleanup to adhere to DRYNigel Kersten2008-12-062-0/+233
| |
| * Bug #1780 Fixing meaningless testAndrew Shafer2008-12-021-2/+10
| | | | | | | | Gave meaning to test dependent on feature for role property
* | Fix #1483 - protect report terminus_class when testing for RESTBrice Figureau2008-12-081-0/+2
| | | | | | | | Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* | Fix #1483 - use REST to transmit reports over the wireBrice Figureau2008-12-063-12/+196
| | | | | | | | Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* | Fixing all broken tests. Most of them were broken by fileserving changes.Luke Kanies2008-12-021-0/+5
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Merge branch '0.24.x'Luke Kanies2008-12-0254-215/+2119
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: bin/puppetca lib/puppet/type/group.rb lib/puppet/type/tidy.rb lib/puppet/util/settings.rb Also edited the following files so tests will pass: lib/puppet/type/component.rb spec/unit/ssl/certificate_request.rb spec/unit/type/computer.rb spec/unit/type/mcx.rb spec/unit/type/resources.rb spec/unit/util/settings.rb spec/unit/util/storage.rb test/ral/type/zone.rb
| * Fixing mcx test failures (only happened sometimes).Luke Kanies2008-12-021-2/+2
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
| * Need to stub out the defaultprovider call for non Mac platformsNigel Kersten2008-12-021-0/+2
| |
| * remove extraneous commentsNigel Kersten2008-12-021-4/+0
| |
| * Trim down the after block clears to try to make the tests work for the build ↵Nigel Kersten2008-12-021-6/+6
| | | | | | | | | | | | servers Remove the require line so that it doesn't conflict with puppet's autoloader
| * Updated mcx type and provider with comprehensive spec tests.Jeffrey McCune2008-12-022-20/+171
| | | | | | | | | | | | | | | | Signed-off-by: Jeffrey McCune <mccune.jeff@gmail.com> Fixed default provider error with mcx type spec. Signed-off-by: Jeffrey McCune <mccune.jeff@gmail.com>
| * Fixing a package test to be *much* fasterLuke Kanies2008-12-011-0/+1
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
| * Fixing a test that fails depending on test execution orderLuke Kanies2008-12-021-3/+3
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>