summaryrefslogtreecommitdiffstats
path: root/spec
Commit message (Collapse)AuthorAgeFilesLines
...
| * Fix #1741 - fix some failing tests on some ruby versions.Brice Figureau2008-12-021-5/+5
| | | | | | | | | | | | Nigelk reported those tests were failing on ubuntu 8.04. I wasn't able to reproduce the issue myself but he confirmed the above patch fixed the tests.
| * Fix #1788 - allow rspec rake to run only some testsBrice Figureau2008-12-021-0/+73
| | | | | | | | Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
| * Fixing the AST constant warnings, using a variable instead of a constantLuke Kanies2008-12-026-74/+74
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
| * Fixing #1785 - selinux tests no longer break other testsLuke Kanies2008-12-021-5/+9
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
| * Ticket 1780 - Solaris RBAC roles should be autorequiredAndrew Shafer2008-12-011-0/+11
| | | | | | | | Autorequire the roles that belong to the user so they will be created first
| * Feature 1696 Add support for branded zonesAndrew Shafer2008-12-012-0/+62
| | | | | | | | Applied the patch from the ticket and wrote tests with the changes
| * Bug #1778 - Solaris RBAC profiles should maintain orderAndrew Shafer2008-12-013-0/+89
| | | | | | | | | | | | Created OrderedList property Added to profile property small refactor in List to make inheriting easier
| * Feature #1783 - Add ZFS supportAndrew Shafer2008-12-014-0/+301
| | | | | | | | Types and providers to manage zfs and zpool
| * Handle password when user is createdAndrew Shafer2008-12-011-0/+5
| | | | | | | | strip out the -p and call password= after the thing is done
| * Solaris doesn't have a native tool to set hashed passwordsAndrew Shafer2008-12-011-0/+53
| | | | | | | | | | | | | | Added support for passwords by directly editing /etc/shadow (I tried to make it work with libshadow, but considering it is not packaged for Solaris and adds little benefit, I decided against it) password and password= are now defined on the default Solaris provider
| * type/mcx.rb Feature #1026 - MCX TypeJeffrey McCune2008-12-012-0/+130
| | | | | | | | | | | | | | | | Added new MCX type and base test. This type manages MCX settings on DirectoryService nodes. These settings take the form of plist XML documents attached to Users, Groups, and Computers in DirectoryService.
| * Simplify launchd service provider and add testsNigel Kersten2008-12-011-0/+134
| |
| * Fixing #1749 - Splay now hopefully behaves "better" for small values.Luke Kanies2008-12-011-9/+9
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
| * Fix #1741 - Add inline_template functionBrice Figureau2008-11-291-0/+59
| |
| * Fix #1741 - refactor TemplateWrapper, test for template functionBrice Figureau2008-11-292-19/+100
| |
| * Fix #1741 - Puppet::Parser::Functions rmfunctions and unit testBrice Figureau2008-11-291-0/+83
| |
| * Fixes #1773 - no longer check for absolute pathsThom May2008-11-291-0/+6
| |
| * Fixing #1743 - defined types get catalogs too.Luke Kanies2008-11-261-1/+7
| | | | | | | | | | | | | | I wasn't adding the catalog to the defined types when creating the transportable objects. Signed-off-by: Luke Kanies <luke@madstop.com>
| * Fixing #1755 - handling fully qualified classes correctly.Luke Kanies2008-11-262-0/+56
| | | | | | | | | | | | | | This involves lexing '::class' tokens along with correctly looking them up from the Resource::Reference class. Signed-off-by: Luke Kanies <luke@madstop.com>
| * Lots of DirectoryService work. New Computer Type. Users now use password ↵Nigel Kersten2008-11-261-0/+86
| | | | | | | | hashes. Groups now support setting members as attributes of the group for OS X.
| * Partially fixing #1772 - fixing selinux tests broken by removal of ↵Luke Kanies2008-11-261-2/+1
| | | | | | | | | | | | extraneous 'stat' in :file. Signed-off-by: Luke Kanies <luke@madstop.com>
| * Partially fixing #1772 - broken 'resources' tests.Luke Kanies2008-11-261-0/+27
| | | | | | | | | | | | | | | | The main problem was that the directory_services user provider was returning a string for its uid instead of an integer. I also began a 'resources' spec file. Signed-off-by: Luke Kanies <luke@madstop.com>
| * Removing the included testing gems; you must now install them yourself.Luke Kanies2008-11-255-15/+52
| | | | | | | | | | | | Everything passes, but autotest doesn't include color. Signed-off-by: Luke Kanies <luke@madstop.com>
| * Fixing #1708 - user groups specified as names are now detected correctly.Luke Kanies2008-11-241-0/+20
| | | | | | | | | | | | | | | | There was a bug when groups were specified by name -- the group was always compared to the current gid, rather than being converted to an integer and comparing that way. This is now fixed. Signed-off-by: Luke Kanies <luke@madstop.com>
| * Revert "Fixing #1755 - File modes (and other strange properties) will now ↵James Turnbull2008-11-221-14/+0
| | | | | | | | | | | | display correctly" This reverts commit ed4c4050a8ac46c509b20031814646a49ba86e54.
| * Fixing #1764 - a property's 'sync' method is never considered a no-op.Luke Kanies2008-11-211-4/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | *This is a behaviour change.* If the property does not return an event name, then one is generated based on the property name. Previously, the 'sync' method could return nil and it would be considered a noop, but if you need a noop, then you need to modify your 'insync?' method to return 'true' in the noop cases. Also modifying all of the builtin types that didn't handle this explicitly or returned nil in 'sync'. There should be no behaviour change in any of them. Signed-off-by: Luke Kanies <luke@madstop.com>
| * Refactoring the file/owner property to be simpler and cleaner.Luke Kanies2008-11-211-0/+132
| | | | | | | | | | | | | | | | It now looks almost exactly like the group property, and has a much more current data flow (e.g., sync is never no-op, and the sync method doesn't check whether the file is present). Signed-off-by: Luke Kanies <luke@madstop.com>
| * Fixing #1755 - File modes (and other strange properties) will now display ↵Luke Kanies2008-11-211-0/+14
| | | | | | | | | | | | | | | | correctly in ralsh and generated manifests. Signed-off-by: Luke Kanies <luke@madstop.com>
| * Fix #1759 - Comparison operator was using string comparison for numbersBrice Figureau2008-11-201-10/+50
| | | | | | | | Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
| * Fixing broken tests resulting from the fix to #1747Luke Kanies2008-11-175-1/+8
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
| * Move function existance test to parser evaluationBrice Figureau2008-11-171-0/+77
| | | | | | | | | | | | | | | | The aim is to let --parseonly succeeds even if the function is not (yet) present. This is usefull in commit-hooks and for the inline documentation generation system. Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
| * RSpec tests for the doc system (covers AST.doc, lexer and parser)Brice Figureau2008-11-173-5/+121
| | | | | | | | Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
| * Fixed #1735 and #1747 - Fixes to confine systemJames Turnbull2008-11-161-19/+13
| |
| * Fixing the provider's confine subsystem so the logs are more useful.Luke Kanies2008-11-133-24/+48
| | | | | | | | | | | | | | | | | | I apparently lost some context in these logs when I switched to this separate subsystem. Note that this also fixes some of the informational issues in Signed-off-by: Luke Kanies <luke@madstop.com>
| * Fix bug #1681: Add filesystem type check to test for per-file SELinux ↵Sean E. Millichamp2008-11-141-0/+41
| | | | | | | | context support
| * Refactoring of SELinux functions to use native Ruby SELinux interfaceSean E. Millichamp2008-11-141-33/+33
| |
| * Fix #1737 - part2 - Fix display of "options"Brice Figureau2008-11-121-0/+12
| |
| * Fix #1737 - ssh_authorized_keys should be able to parse options containing ↵Brice Figureau2008-11-111-0/+7
| | | | | | | | | | | | commas Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
| * Fixing the augeas type tests to work when augeas is missingLuke Kanies2008-11-051-88/+98
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Adding more file tests and fixing conflicting testsLuke Kanies2008-11-152-0/+22
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Completely refactoring the tidy type.Luke Kanies2008-11-152-12/+344
| | | | | | | | | | | | | | | | | | | | | | | | This was necessary because of how I changed file recursion. The type works much more intelligently now -- files to be removed have a file resource generated for them, and that resource handles deletion. Also fixes #1717; neither age nor size is required now. Signed-off-by: Luke Kanies <luke@madstop.com>
* | These changes are all about making sure file data is expired when appropriate.Luke Kanies2008-11-152-2/+77
| | | | | | | | | | | | All file tests now pass. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Catalogs always consider resource data to be expired if not mid-transaction.Luke Kanies2008-11-152-1/+14
| | | | | | | | | | | | | | | | | | This way we'll cache when in a transaction, but otherwise always hit the disk so the data is fresh. This works because we really only use resources mid-transaction, but it behaves correctly if we happen to use a resource outside of a transaction. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Properly cleaning up ssl ca configuration during testingLuke Kanies2008-11-114-4/+8
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Adding caching support to parameters, and using cached attributes for file ↵Luke Kanies2008-11-113-18/+48
| | | | | | | | | | | | | | | | | | source and metadata. As hoped, this drastically simplifies the code around retaining this data. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Adding cached attribute support to resources.Luke Kanies2008-11-113-10/+24
| | | | | | | | | | | | | | | | | | | | | | | | The Catalog is the expirer, which means that a resource with no catalog will not cache data. Also switching files to use a cached attribute for its stat. And modifying catalogs to expire data at the end of every transaction. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Allowing a nil expirer for caching classes.Luke Kanies2008-11-111-1/+6
| | | | | | | | | | | | | | If there's no expirer, then the value is regenerated every time. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Refactoring the Cacher interface to always require attribute declaration.Luke Kanies2008-11-111-100/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously you could dynamically use cached values, but the new interface requires a single static declaration of the attribute: cached_attr(:myattr) { my_init_code() } This is cleaner, because it makes it easy to turn the code into an init method and generally makes the whole thing easier to think about. Most of this commit is going through the different classes that already using the Caching engine. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Changing the Cacher.invalidate method to Cacher.expire.Luke Kanies2008-11-1126-49/+43
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Fixing a critical bug in the Cacher module.Luke Kanies2008-11-111-8/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Basically, the first generated value was always considered expired the next time it was asked for. The fix was to create an initial timestamp in the Cacher module, thus providing a floor for validity. This is definitely a murky bug, and is especially hard to test. Also refactoring the internals just a bit. Signed-off-by: Luke Kanies <luke@madstop.com>