puppetlabs-puppet/test
Jesse Wolfe b7d387e3e7 Feature #2935 Puppet[:mode] and Puppet[:name] are read-only
Historically, the Puppet[:name] setting has been settable, but the
results of chaning it are poorly defined.
The switch to modes instead of executable names seems like a good time
to disable this complexity.

Signed-off-by: Jesse Wolfe <jes5199@gmail.com>
2010-02-17 06:50:53 -08:00
..
certmgr Renamed all references to Reductive Labs to Puppet Labs 2010-02-17 06:50:53 -08:00
data Fix #2389 - Enhance Puppet DSL with Hashes 2010-02-17 06:50:53 -08:00
language Fixing #2658 - adding backward compatibility for 0.24 2010-02-17 06:50:53 -08:00
lib Fixing #2658 - adding backward compatibility for 0.24 2010-02-17 06:50:53 -08:00
network Feature #2935 Puppet[:mode] and Puppet[:name] are read-only 2010-02-17 06:50:53 -08:00
other Feature #2935 Puppet[:mode] and Puppet[:name] are read-only 2010-02-17 06:50:53 -08:00
puppet Mock user in SUIDManager tests 2010-02-17 06:50:53 -08:00
rails Resolving conflicts with ??? 2010-02-17 06:50:53 -08:00
ral Fixing #2658 - adding backward compatibility for 0.24 2010-02-17 06:50:53 -08:00
util Feature #2935 Puppet[:mode] and Puppet[:name] are read-only 2010-02-17 06:50:53 -08:00
README Fix for #565: Final merge of changes from source:branches/execute-refactor into source:trunk 2007-04-03 15:51:18 +00:00
Rakefile Removed extra whitespace from end of lines 2009-06-06 09:12:00 +10:00
test Removed extra whitespace from end of lines 2009-06-06 09:12:00 +10:00

README

$Id$

To run all tests, run: 'rake test'.  To run an individual suite, run the file
directly.  e.g. cd test/util; ./utiltest.rb

You might need to run some tests as root.

If you do not have rake installed:
  gem install rake

## The following information is possibly out of date?

Tests are organized into a dual hierarchy: each subdirectory is
considered a test suite, and each file in the subdirectory is considered
a test case.  You can use any test case as an example of how to write
more of them, but basically the only requirements are that they each have
their own class names, their names each match /tc_.+\.r/, and that they have
the following header:

if __FILE__ == $0
    $:.unshift '..'
    $:.unshift '../../lib'
    $blinkbase = "../.."
end