I have a inspec test rb file:
describe firewalld do
it { should be_running }
end
After run it gives the error:
$ kitchen verify
-----> Starting Kitchen (v1.17.0)
-----> Verifying <default-generic-rhel7>...
Loaded tests from test/smoke/default
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: 1 actions failed.
>>>>>> Failed to complete #verify action: [undefined local variable or method `firewalld' for #<#<Class:0x00000000046df570>:0x00000000046de530>] on default-generic-rhel7
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration
While I run other resources such as “iptables” it is successful.
Why the inspect in kitchen cannot recognize the resource firewalld? I am running a CentOS 7 VM for testing.