mirror of
https://github.com/inspec/inspec
synced 2024-12-17 00:23:15 +00:00
86cf55382b
* Improve filesystem.rb to support windows improve filesystem.rb to support windows. Split into 2 classes LinuxFileSystemResource / WindowsFileSystemResource Add filesystem to verify a FS-type ( currently not for linux because missing test server ) Size on Windows is converted to GB - discussion about this welcome update to reflect also windows os * Create get-wmiobject-filesystem * Delete get-wmiobject-filesystem * Fix the testing code for filesystem. Change its 'filesystem' to 'type' according to recommendation from @miah Signed-off-by: Markus Hackethal <mh@it31.de>
14 lines
310 B
Ruby
14 lines
310 B
Ruby
if ENV['DOCKER']
|
|
STDERR.puts "\033[1;33mTODO: Not running #{__FILE__.split("/").last} because we are running in docker\033[0m"
|
|
return
|
|
end
|
|
|
|
if os.windows?
|
|
describe filesystem('c:') do
|
|
its('size') { should be >= 1 }
|
|
end
|
|
else
|
|
describe filesystem('/') do
|
|
its('size') { should be >= 1 }
|
|
end
|
|
end
|