Undefined method `iis_pool'


#1

Hello,

I created a wrapper cookbook for iis version 7.1.0 (https://supermarket.chef.io/cookbooks/iis).
My recipe looks like this:
include_recipe 'iis::default'

iis_pool 'test' do
runtime_version '4.0'
pipeline_mode :Integrated
identity_type :LocalSystem
start_mode :OnDemand
idle_timeout '00:00:00'
recycle_after_time '00:00:00'
action [:add, :start]
end

The problem is when I'm trying to use kitchen verify to test if the pool was created. The error is:
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: 1 actions failed.
>>>>>> Failed to complete #verify action: [undefined method `iis_pool' for #<#Class:0x000000000616d108:0x0000000006167ac8>] on default-windows-2016-chef-14

The test looks like this:
describe iis_pool('test') do
it { should exist }
it { should be_running }
its('managed_runtime_version') { should eq 'v4.0' }
it { should have_name('test') }
end

Any ideas?

Thanks.


#2

Looking at the current list of inspec resources, I don’t see an ‘iis_pool’ resource for inspec at this time.

Only IIS resources I see are iis_app and iis_site.


#3

Ok. Thanks for the answer. I understand now why is not working.