mirror of
https://github.com/inspec/inspec
synced 2024-09-21 06:51:56 +00:00
update messages for integration tests
This commit is contained in:
parent
57bdd3464c
commit
97a9e67181
4 changed files with 16 additions and 4 deletions
|
@ -1,6 +1,9 @@
|
|||
# encoding: utf-8
|
||||
|
||||
return unless os.windows?
|
||||
unless os.windows?
|
||||
STDERR.puts "\033[1;33mTODO: Not running #{__FILE__} because we are not on Windows.\033[0m"
|
||||
return
|
||||
end
|
||||
|
||||
script = <<-EOH
|
||||
Write-Output 'hello'
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
# encoding: utf-8
|
||||
|
||||
return unless os.windows?
|
||||
unless os.windows?
|
||||
STDERR.puts "\033[1;33mTODO: Not running #{__FILE__} because we are not on Windows.\033[0m"
|
||||
return
|
||||
end
|
||||
|
||||
describe registry_key('HKLM\System\Test') do
|
||||
it { should exist }
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
# encoding: utf-8
|
||||
|
||||
return unless os.windows?
|
||||
unless os.windows?
|
||||
STDERR.puts "\033[1;33mTODO: Not running #{__FILE__} because we are not on Windows.\033[0m"
|
||||
return
|
||||
end
|
||||
|
||||
describe security_policy do
|
||||
its('EnableAdminAccount') { should eq 1 }
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
# encoding: utf-8
|
||||
|
||||
return unless os.windows?
|
||||
unless os.windows?
|
||||
STDERR.puts "\033[1;33mTODO: Not running #{__FILE__} because we are not on Windows.\033[0m"
|
||||
return
|
||||
end
|
||||
|
||||
# Get-WmiObject win32_service or Get-WmiObject -class win32_service
|
||||
# returns an array of service objects
|
||||
|
|
Loading…
Reference in a new issue