I am writing a cookbook to setup a web server. On the recipe side the windows feature is being installed/verified using DSC using:
# Ensure .NET 2.0, 3.0, 3.5 is installed
dsc_script 'DotNET-Framework' do
code <<-EOH
WindowsFeature InstallDotNetFramework
{
Name = 'NET-Framework-Core'
Ensure = 'Present'
}
EOH
end
I can log in to the test kitchen server after converge and verify that 'NET-Framework-Core' is in fact installed. When I run a kitchen verify Inspec tells me that it is not installed.
Inspec comand:
# .NET 3.5, 3.0 and 2.0 Framework installed
describe windows_feature('NET-Framework-Core') do
it { should be_inistalled }
end
Error from console:
'NET-Framework-Core' should be inistalled
expected Windows Feature 'NET-Framework-Core' to respond toinistalled?
Just in case a gist of the kitchen log is here: The kitchen log from failed check of Inspec check: describe windows_feature('NET-Framework-Core') · GitHub
And a gist of the installed feature list from the server: The installed feature list from the Test Kitchen server · GitHub
I am confused on why the feature is not seen as being installed when I know that it is. The error in the Kitchen log isn't much help to me. Any suggestions are greatly appreciated.