summaryrefslogtreecommitdiffstats
path: root/spec/unit
Commit message (Collapse)AuthorAgeFilesLines
...
* | Fixing CertificateRequest#save to accept arguments.Luke Kanies2008-11-031-0/+7
| | | | | | | | | | | | This happens when called over REST. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Merge branch '0.24.x'Luke Kanies2008-10-319-47/+565
|\| | | | | | | | | | | Conflicts: CHANGELOG
| * Added unit tests for the augeas type and providerBryan Kearney2008-10-302-0/+341
| |
| * Fix #1402 - Allow multiline commentsBrice Figureau2008-10-291-1/+29
| | | | | | | | Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
| * Fix #857 - Multiple class of the same name don't append codeBrice Figureau2008-10-291-0/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The following manifest wasn't working: class one { notice('class one') } class one { notice('second class one') } include one It all boiled down to class code not being arrays. Encapsulating code in ASTArray when needed is enough to append code, because of the property of ASTArray to evaluate all their members in turn. Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
| * Fixing #1669 - The dump parameter can now be changed on mounts.Luke Kanies2008-10-291-0/+29
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
| * Fix #1682 - ASTArray should flatten product of evaluation of its childrenBrice Figureau2008-10-291-0/+66
| | | | | | | | | | If the ASTArray contains children that evaluate to arrays themselves, they aren't flattened.
| * Fixing #1660 - Adding specifically supported values for tidy recursion.Luke Kanies2008-10-281-0/+60
| | | | | | | | | | | | Basically just copied the code for the recurse parameter from 'file'. Signed-off-by: Luke Kanies <luke@madstop.com>
| * Fixing #1698 - all logs again show up in the report.Luke Kanies2008-10-281-46/+0
| |
| * Fixed #1104 - Classes and nodes should set $name variablesBrice Figureau2008-10-281-0/+13
| | | | | | | | Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* | Merge branch '0.24.x'Luke Kanies2008-10-228-18/+409
|\| | | | | | | | | | | Conflicts: lib/puppet/type/user.rb
| * Fixes #1663 - added Symbol check and additional testSean E. Millichamp2008-10-231-0/+9
| |
| * Fix SELinux test to succeed when Puppet debug mode is enabledSean E. Millichamp2008-10-221-0/+1
| |
| * Fix regression caused by switch to Puppet's execute() functionsSean E. Millichamp2008-10-221-1/+1
| |
| * Solaris RBAC AttributesAndrew Shafer2008-10-224-15/+345
| | | | | | | | | | | | | | | | | | | | | | Adding support to user type for: profiles auths project key/value pairs Refactored useradd.addcmd so I could override how properties get added in the subclass Added keyvalue property to manage generic keyvalues
| * Fix #936 - Allow trailing comma in array definitionBrice Figureau2008-10-211-0/+8
| | | | | | | | Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
| * Fix #1115 - part2 - fix tests and add all_tagsBrice Figureau2008-10-211-1/+7
| | | | | | | | | | | | | | | | Up until this patch, TemplateWrapper.tags was returning all the tags defined in the catalog. I think this is wrong and tags shoul only return the defined tags in the current scope. Hence, I defined a all_tags method that returns the list of tags defined in the whole catalog.
| * Fixed #1663 - Regression relating to facter fact naming from 0.24.5James Turnbull2008-10-211-1/+14
| |
| * Fix #636 - Allow extraneous comma in function argument listBrice Figureau2008-10-211-0/+24
| | | | | | | | Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* | Merge branch '0.24.x' Removed the 'after' blocks that call Type.clear,Luke Kanies2008-10-1742-145/+2863
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | since that method is deprecated. Conflicts: CHANGELOG bin/puppetca lib/puppet/file_serving/fileset.rb lib/puppet/network/xmlrpc/client.rb lib/puppet/type/file/selcontext.rb spec/unit/file_serving/metadata.rb spec/unit/type/file.rb
| * Fixing tests I broke when trying to fix the Providers reference.Luke Kanies2008-10-171-5/+15
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
| * Use fully qualified paths when calling binaries, adjust chcon call to use ↵Sean E. Millichamp2008-10-171-8/+8
| | | | | | | | Puppet's execute() function.
| * Setting SELinux contexts with chcon should not dereference symbolic linksSean E. Millichamp2008-10-171-5/+5
| |
| * Fix #1115 - Allow checking tags/classes from ERb templatesBrice Figureau2008-10-141-0/+14
| | | | | | | | | | | | | | | | Add to predefined variables to the ERB template space. "classes" and "tags" which provide arrays of all the defined classes and tags for a node. Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
| * Fix 1642 (always warning) and improve unit tests to cover when to warn and notPaul Nasrat2008-10-111-1/+25
| |
| * 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
| |