add integration tests for file permissions on windows

This commit is contained in:
Christoph Hartmann 2016-08-16 14:57:34 +02:00
parent 961e815804
commit a381e406c4

View file

@ -192,4 +192,10 @@ if os.windows?
# Only works on Windows 2012 R2
its('file_version') { should eq '6.3.9600.17415' }
end
# read the owner of a file
describe directory('C:/opscode/chef') do
its('owner') { should cmp 'NT AUTHORITY\SYSTEM' }
it { should be_owned_by 'NT AUTHORITY\SYSTEM' }
end
end