summaryrefslogtreecommitdiffstats
path: root/spec
Commit message (Collapse)AuthorAgeFilesLines
...
| * Fix 1642 (always warning) and improve unit tests to cover when to warn and notPaul Nasrat2008-10-111-1/+25
| |
| * Adding warnings when example groups are skipped.Luke Kanies2008-10-081-1/+4
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
| * Moving some test/ package tests to rspec integration testsLuke Kanies2008-10-081-0/+26
| | | | | | | | | | | | and disabling a gem test that hangs forever for me. Signed-off-by: Luke Kanies <luke@madstop.com>
| * Cleanup selboolean and selmodule unit tests to pass on non-SELinux systemsSean E. Millichamp2008-10-093-3/+14
| |
| * Add unit test coverage for Puppet::Util::SELinux and fix problems found by testsSean E. Millichamp2008-10-091-0/+174
| |
| * Add failing test for plugin with file and recursePaul Nasrat2008-10-091-0/+8
| |
| * Fix several small regressions in plugins mountBrice Figureau2008-10-091-0/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since a30ecf2aeffd71960bd806fb28cd6d1b8adc2452, reclist has one parameter less, but Puppet::Network::Handler::PluginMount.list wasn't ported to the new API. While mounting plugins, reclist wasn't requiring 'file_serving/fileset', leading to an NameError. The change to the new API meant that we lost the existance test of plugins mount directory. It was failing when the client was mounting module plugins that weren't existing (like facter and no custom facts defined). Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
| * Fixing #1640 - file groups now no longer get set on every runLuke Kanies2008-10-081-1/+32
| | | | | | | | | | | | (this was a regression caused by other work I did). Signed-off-by: Luke Kanies <luke@madstop.com>
| * Add new set of unit tests for selmodule typeJames Turnbull2008-10-084-35/+81
| |
| * Removal of redundant lines from unit testSean E. Millichamp2008-10-081-3/+0
| |
| * Remove old selboolean unit tests and fix permissions on new testsJames Turnbull2008-10-083-30/+0
| |
| * Rewrote seboolean unit tests to provide better coverageSean E. Millichamp2008-10-082-0/+79
| |
| * New and improved tests for file type SELinux contextsSean E. Millichamp2008-10-082-27/+82
| |
| * Fix regression when templatedir doesn't exist.Brice Figureau2008-10-081-0/+13
| | | | | | | | | | | | | | | | When searching for a module template and if the default templatedir is inexistant, puppet was raising an error without trying the modules templates directories. Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
| * Fix #1202 - Collection attribute matching doesn't parse arraysBrice Figureau2008-10-081-0/+92
| | | | | | | | | | | | | | | | | | | | | | | | This patch allows to do this: User <| groups == leads |> @user { "foo": ensure => "present", groups => ["bar","baz","leads"] } Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
| * Adding an array indexer method to Puppet::Util::Metric as requested in #1633.Luke Kanies2008-10-081-0/+9
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
| * Adding partial spec tests for Puppet::Util::Metric.Luke Kanies2008-10-081-0/+86
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
| * Fixed #1473 - Rescue Timeout::Error in xmlrpc clientsAndrew Shafer2008-10-071-0/+13
| | | | | | | | | | Added a rescue block for Timeout::Error (which isn't a subclass of StandardError) Removed a Dev Error conditional to facilitate testing
| * Fix #1109 - allow empty if or else branchesBrice Figureau2008-10-072-0/+46
| | | | | | | | | | | | | | | | | | | | | | | | This changesets allow empty if or else branches: if true { } else { } It works by emitting on the parser stack an AST node that doesn't do anything (a no-op). This allows the less intrusive code as no part of the if evaluation code has been touched.
| * Fixed additional environments testsJames Turnbull2008-10-051-2/+2
| |
| * Rspec Tests for #381.Brice Figureau2008-10-053-1/+154
| | | | | | | | Moved part of the old resource reference tests to rspec.
| * Fixing #1098 - Multiline strings now correctly increment the line countLuke Kanies2008-10-041-0/+21
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
| * Fixing #1089 - Log messages are now tagged with the log level,Luke Kanies2008-10-041-3/+4
| | | | | | | | | | | | making it easier to match messages in the 'tagmail' report. Signed-off-by: Luke Kanies <luke@madstop.com>
| * Adding rspec tests for the Puppet::Util::Log class.Luke Kanies2008-10-041-0/+152
| | | | | | | | | | | | | | Also using Puppet::Util::Tagging to handle the tagging, rather than custom methods. Signed-off-by: Luke Kanies <luke@madstop.com>
| * Fix failing tests dependent on /etc/user_attr file existingAndrew Shafer2008-10-041-3/+3
| |
| * Fixing #947 - pluginsync no longer fails poorly when no plugins existLuke Kanies2008-10-031-2/+2
| | | | | | | | | | | | Note that it still fails -- it's just a more reasonable failure. Signed-off-by: Luke Kanies <luke@madstop.com>
| * Fixing the Node class to no longer validate environmentsLuke Kanies2008-10-031-15/+0
| | | | | | | | | | | | since #1614 removed that validation. Signed-off-by: Luke Kanies <luke@madstop.com>
| * Add new support for :selrange SELinux file propertySean E. Millichamp2008-10-031-1/+5
| |
| * Clean up of SELinux rspec tests so all passSean E. Millichamp2008-10-031-0/+9
| |
| * Merged fsweetser's selinux patch against HEADBrett Lentz2008-10-031-0/+79
| |
| * Fixed #1613 - The client environment will be substituted when looking up ↵Luke Kanies2008-10-031-0/+15
| | | | | | | | | | | | | | | | | | | | settings. This won't be perfect, because it still requires that the caller pass in an environment, but for every case that an environment is passed in, that environment will be substituted into settings when possible. Signed-off-by: Luke Kanies <luke@madstop.com>
| * Fixing #1614 - Environments no longer have to be listed out.Luke Kanies2008-10-031-52/+0
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
| * Migrating the apt and dpkg tests to rspec.Luke Kanies2008-10-022-0/+301
| | | | | | | | | | | | | | I left the aptitude and aptrpm tests as an exercise for the reader. Signed-off-by: Luke Kanies <luke@madstop.com>
| * Add role support to user type and an implementionAndrew Shafer2008-10-012-0/+278
| | | | | | | | | | | | | | | | modify user type: add ensure = role logic add roles property add manages_solaris_rbac feature refactored 'list' property to reuse logic for groups in roles
| * Adding user_attr util to parse attributes on solarisAndrew Shafer2008-10-011-0/+47
| | | | | | | | read /etc/user_attr and makes a hash based on the file contents
| * Fixed #791 - You should now be able to create and find a user/group in one ↵Luke Kanies2008-10-021-0/+256
| | | | | | | | | | | | | | | | | | | | | | | | | | transaction. The real problem was that the 'gid' and 'uid' methods didn't handle the case where 'get_posix_field' didn't return a value, and the subsequent 'get_posix_field' calls couldn't handle that. This commit moves the tests for Posix to spec, and fixes the specific bug. Signed-off-by: Luke Kanies <luke@madstop.com>
| * Refactoring and adding tests to the file group property.Luke Kanies2008-10-021-0/+87
| | | | | | | | | | | | | | Drastically simplified the class, removing a lot of obsolete code and adding tests for nearly the whole class. Signed-off-by: Luke Kanies <luke@madstop.com>
| * Merge branch 'tickets/0.24.x/1622' into 0.24.xJames Turnbull2008-10-023-56/+227
| |\ | | | | | | | | | | | | | | | Conflicts: CHANGELOG
| | * Modified the group and zone resource types to no longer callLuke Kanies2008-09-301-0/+1
| | | | | | | | | | | | | | | | | | | | | 'currentpropvalues' as a means of setting all values to absent. There should be no behaviour change from this change. Signed-off-by: Luke Kanies <luke@madstop.com>
| | * Modified the behaviour of resource-level 'retrieve' -- it onlyLuke Kanies2008-09-301-19/+53
| | | | | | | | | | | | | | | | | | calls 'retrieve' on each property if the resource exists. Signed-off-by: Luke Kanies <luke@madstop.com>
| | * Adding tests for the user retrieve methodLuke Kanies2008-09-301-0/+24
| | | | | | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
| | * Fixing #1622 - The user type only looks up groups when necessary.Luke Kanies2008-09-301-1/+140
| | | | | | | | | | | | | | | | | | | | | Also added a bunch of tests to the user type, and refactored as necessary for this to work. Signed-off-by: Luke Kanies <luke@madstop.com>
| | * Aliasing the rspec 'should' method to 'must'Luke Kanies2008-09-301-0/+5
| | | | | | | | | | | | | | | | | | so it does not conflict with the RAL 'should' method. Signed-off-by: Luke Kanies <luke@madstop.com>
| | * Rewriting the user tests, in preparation for enhancing themLuke Kanies2008-09-301-41/+9
| | | | | | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
| * | Add parser for arbitrary expressionsBrice Figureau2008-10-012-4/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The expressions can be used in if 'test' and in the right side of assignements. The expressions can contain any number of sub-expressions combined by either arithmetic operators, comparison operators, or boolean operators. Random Usage Examples: $result = ((( $two + 2) / $one) + 4 * 5.45) - (6 << 7) + (0x800 + -9) or if ($a < 10) and ($a + 10 != 200) { ... }
| * | Add arithmetic operators to ASTBrice Figureau2008-09-303-0/+159
| | | | | | | | | | | | | | | This changeset adds +,-,/,*,<< and >> computation and AST parse nodes.
| * | Add not operator to ASTBrice Figureau2008-09-301-0/+30
| | |
| * | Add comparison operators (< > == != <= >=) to ASTBrice Figureau2008-09-301-0/+52
| | |
| * | Add boolean operators to ASTBrice Figureau2008-09-301-0/+53
| | |
| * | Add warning and forcibly set to :md5 fixing #1564Paul Nasrat2008-09-301-0/+8
| | |