Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

default version of chef handler gem #62

Closed
duallain opened this issue May 30, 2014 · 0 comments

Comments

Projects
None yet
1 participant
@duallain
Copy link

commented May 30, 2014

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?

@dpetzel dpetzel closed this in d505c3a May 30, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.