btm / minitest-handler-cookbook

Apache License 2.0
59 stars 36 forks source link

default version of chef handler gem #62

Closed duallain closed 10 years ago

duallain commented 10 years ago

When running a test with the minitest assertion 'refute_sh' and this cookbook the command fails with this error:

[2014-05-30T20:39:06+00:00] FATAL: RuntimeError: MiniTest failed with 0 failure(s) and 1 error(s). Error: recipe::percona-utilities-hp::zabbix_mysql#test_0009_should have a non-empty password for zabbix@localhost MySQL user: NoMethodError: undefined method refute_sh' for #<#<Class:0x0000000630e098>:0x000000042197e8> /var/chef/minitest/percona-utilities-hp/zabbix_test.rb:48:inblock (2 levels) in <top (required)>'

It seems that refute_sh is an assertion that was added in a later version of the minitest-chef-handler. Changing the version of the gem 'minitest-chef-handler' to 1.0.2 fixes the problem for me. Would it be possible to change the default attribute (default[:minitest][:chef_handler_gem_version]) in this cookbook to be 1.0.2 instead of 1.0.1?