update messages for integration tests

This commit is contained in:
Christoph Hartmann 2016-08-12 10:19:35 +02:00
parent 57bdd3464c
commit 97a9e67181
4 changed files with 16 additions and 4 deletions

View file

@ -1,6 +1,9 @@
# encoding: utf-8 # 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 script = <<-EOH
Write-Output 'hello' Write-Output 'hello'

View file

@ -1,6 +1,9 @@
# encoding: utf-8 # 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 describe registry_key('HKLM\System\Test') do
it { should exist } it { should exist }

View file

@ -1,6 +1,9 @@
# encoding: utf-8 # 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 describe security_policy do
its('EnableAdminAccount') { should eq 1 } its('EnableAdminAccount') { should eq 1 }

View file

@ -1,6 +1,9 @@
# encoding: utf-8 # 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 # Get-WmiObject win32_service or Get-WmiObject -class win32_service
# returns an array of service objects # returns an array of service objects