Chefspec issue on windows_task resource


#1

Hello,

I have the following error when I try to run ChefSpec tests and it seems it is related to windows_task resource from the recipe. Does anyone know what could be the problem?

This is my ChefDK version:
Chef Development Kit Version: 3.7.23
chef-client version: 14.10.9
delivery version: master (64f556d5ebfd7bac2c0b3cc2c53669688b3ea4b5)
berks version: 7.0.7
kitchen version: 1.24.0
inspec version: 3.4.1

pp_services::SSA.SigningService When all attributes are default creates SSA users
     Failure/Error: runner.converge(described_recipe)
     
     NameError:
       uninitialized constant Chef::ReservedNames::Win32::Security
       Did you mean?  SecurityError
     # /tmp/chef/cache/cookbooks/pp_services/recipes/SigningService.rb:113:in `from_file'
     # ./spec/unit/recipes/SigningService_spec.rb:28:in `block (3 levels) in <top (required)>'
     # ./spec/unit/recipes/SigningService_spec.rb:40:in `block (3 levels) in <top (required)>'

#2

It seems that it is related to the fact that I run the tests on Linux.


#3

Believe this issue I encountered encompasses what you are seeing:

https://github.com/chefspec/chefspec/issues/952