I am trying to use chef inspec
to test my cookbook changes. I am testing the installation of newrelic
package and service from my recipe. When i tried to run kitchen verify
it fails with Sudo failed: Sudo requires a TTY
. can any one help me to know what could be wrong here that might not allowing me to verify test cases. Thanks
Test Directory Path - test/integration/default/inspec/default_spec.rb
describe service('nrsysmond') do
it { should be_enabled }
it { should be_running }
end
describe package('newrelic-sysmond') do
it { should be_installed }
end
-----> Verifying <default-rhel-67>... Detected alternative framework tests for
inspec Search
/Users/abc/code/domain_chef/newrelic-chef/cookbooks/newrelic/test/integration/default/inspec` for tests
------Exception-------
Class: Kitchen::ActionFailed
Message: Failed to complete #verify action: [Sudo failed: Sudo requires a TTY. Please see the README on how to configure sudo to allow for non-interactive usage.]
`