Commit Graph

23 Commits

Author SHA1 Message Date
Tim Sharpe a1b5ebe25d Add support for testing the catalogue for a defined host 2012-02-15 16:33:48 +11:00
Dan Bode 4588a91049 Add 'without' method
Adds a method 'without' which accepts a list of
parameters that should not be defined in the resource.

Example:

  it { should contain_service('keystone').without(
    ['restart', 'status']
  )}
2011-12-29 19:51:33 -08:00
Dan Bode 4184c54118 Add with method to generic matcher
This commit adds a method 'with' that can be used
to test mulitple parameters/values with a single
method call

Example:

  it do should contain_service('keystone').with(
    'ensure'     => 'running',
    'enable'     => 'true',
    'hasstatus'  => 'true',
    'hasrestart' => 'true'
  ) end

It was created as a more condensed alternative to
chaining methods per parameter to validate.
2011-12-29 15:37:24 -08:00
Tim Sharpe eb50b75789 Double plural 2011-11-01 21:20:38 +13:00
Tim Sharpe bb9f2338fd Missing an end in an example 2011-11-01 21:05:41 +13:00
Tim Sharpe 81257c7f4e Document function testing 2011-11-01 21:03:35 +13:00
Tim Sharpe 89ac6b8877 Initial function testing mock up 2011-11-01 14:40:31 +11:00
Tim Sharpe ac695d6043 Add support for testing undefined resource parameters
Closes #13
2011-08-29 14:18:22 +12:00
Tim Sharpe 20cfb2d7c0 Prettify README with some syntax highlighting 2011-08-11 12:56:41 -07:00
Tim Sharpe d13bee6a26 Update README to suggest contain_ over create_ 2011-08-10 17:36:17 -07:00
Tim Sharpe 6c0b835990 Start documenting all the things 2011-07-19 12:18:08 +10:00
Tim Sharpe 361022726a Update readme 2011-07-19 09:32:20 +10:00
Tim Sharpe 2f767ea2a8 Update todo list 2011-07-18 17:02:33 +10:00
Dan Bode 1642c83050 Changed let method from name to title
To conform better with Puppet's terminology.
2011-07-17 22:27:46 -07:00
Tim Sharpe c0c3195ad5 Generic create_resource matcher 2011-07-18 13:56:01 +10:00
Tim Sharpe fc4681746c Update README 2011-07-18 12:23:10 +10:00
Tim Sharpe 82e5fa0275 Update todo list 2011-07-18 10:52:11 +10:00
Tim Sharpe ddf97364cf Add a mini todo list 2011-07-18 10:47:27 +10:00
Tim Sharpe 2d6ea8e33f Update README 2011-07-18 10:29:18 +10:00
Tim Sharpe c5eefcf25e Update README 2011-07-18 09:37:21 +10:00
Tim Sharpe 24f34ff96c Update README 2011-07-18 09:31:25 +10:00
Tim Sharpe 91f1c9adf6 Explain it a bit better 2011-07-17 11:08:01 +10:00
Tim Sharpe 0cfaf6525a Basic README 2011-07-17 11:05:01 +10:00