Hi Chefs
Up to now we have always used serverspec for our integration tests but we have decided to give inspec a try as its the new kid in town but fallen at the first hurdle!
I can’t seem to get the file matcher to work. We are running on server 2012R2 with test kitchen 1.5 and inspec 0.14.2 (chefdk 0.11.2)
My default_spec is very simple and just contains a single file matcher…(the file exists on the node!)
describe file('c:/chef/win32_eventlog_handler.rb') do
it { should exist }
end
It fails with the error below. I have tried using single and double quotes with forward, backslashes and escaped backslashes.
Failures:
1) File c:/chef/win32_eventlog_handler.rb should exist
Failure/Error:
{ "#{NS_ADDRESSING}:To" => "#{@xfer.endpoint.to_s}",
"#{NS_ADDRESSING}:ReplyTo" => {
"#{NS_ADDRESSING}:Address" => 'http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous',
:attributes! => {"#{NS_ADDRESSING}:Address" => {'mustUnderstand' => true}}},
"#{NS_WSMAN_DMTF}:MaxEnvelopeSize" => @max_env_sz,
"#{NS_ADDRESSING}:MessageID" => "uuid:#{SecureRandom.uuid.to_s.upcase}",
"#{NS_WSMAN_DMTF}:Locale/" => '',
"#{NS_WSMAN_MSFT}:DataLocale/" => '',
"#{NS_WSMAN_DMTF}:OperationTimeout" => @timeout,
:attributes! => {
NoMethodError:
undefined method `endpoint' for nil:NilClass
# ./test/integration/member/default_spec.rb:7:in `block (2 levels) in load'
Finished in 0.04304 seconds (files took 0.36036 seconds to load)