You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am having an inspec profile with 'profile files' and am trying to execute it using 'test kitchen'. I end up with this error -
$ kitchen verify
-----> Starting Kitchen (v1.13.2)
-----> Verifying <default-centos-nightly>...
Using `blh/blah/path` for testing
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: 1 actions failed.
>>>>>> Failed to complete #verify action: [undefined local variable or method `inspec' for #<#<Class:0x007fd1e6c87f48>:0x007fd1e6c872c8>] on default-centos-nightly
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration
The folder structure is like this -
the control - 'common.rb' is -
my_packages = yaml(content: inspec.profile.file('packages.yml')).params
my_packages.each do |s|
describe package(s['package_name']) do
it { should be_installed }
end
end
Hi,
I am having an inspec profile with 'profile files' and am trying to execute it using 'test kitchen'. I end up with this error -
The folder structure is like this -
the control - 'common.rb' is -
The .kitchen.yml has this -
What am I missing/where am I going wrong?
The text was updated successfully, but these errors were encountered: