Hi,
I was using bash
Inspec resource to verify a command usage,but when I try kitchen verify
, it complains of the bash resource as undefined.I observed that bash
Inspec resource was available from chef-Inspec docs - InSpec CLI, but githubdocs doesn't show that https://github.com/chef/inspec/blob/master/docs/resources.rst. Am I doing it in a wrong way with the bash
Inspec resource in my testcase OR I need latest version of kitchen-inspec
to be installed? thanks.
kitchen-inspec (0.12.3, 0.12.1)
Chef Development Kit Version: 0.12.0
kitchen version: 1.6.0
bash Inspec:
describe bash('chmod +x *.sh') do
it { should exist }
its('stdout') { should match '/opt/tomcat/apache-tomcat-7.0.8/bin/' }
its('exit_status') { should eq 0 }
end
Exception:
Class: Kitchen::ActionFailed
Message: Failed to complete #verify action: [undefined method `bash' for #<#Class:0x007f89e2387958:0x007f89e2387368>]