mirror of
https://github.com/inspec/inspec
synced 2025-02-17 06:28:40 +00:00
Be a bit louder when skipping an entire integration suite
This commit is contained in:
parent
e6f73ff373
commit
f76bc6b7b4
11 changed files with 60 additions and 30 deletions
|
@ -1 +1,8 @@
|
|||
p "You are currently running on OS: #{os[:name] || 'unknown'}, OS release: #{os[:release] || 'unknown'}, OS family: #{os[:family] || 'unknown'}"
|
||||
puts "-----------------------------------"
|
||||
puts " TEST ENVIRONMENT "
|
||||
puts "-----------------------------------"
|
||||
puts " Docker: #{!ENV['DOCKER'].nil?}"
|
||||
puts " OS name: #{os[:name] || 'unknown' }"
|
||||
puts "OS release: #{os[:release] || 'unknown'}"
|
||||
puts " OS family: #{os[:family] || 'unknown'}"
|
||||
puts "-----------------------------------"
|
||||
|
|
|
@ -1,8 +1,13 @@
|
|||
# encoding: utf-8
|
||||
if ENV['DOCKER']
|
||||
STDERR.puts "\033[1;33mTODO: Not running #{__FILE__.split("/").last} because we are running in docker\033[0m"
|
||||
return
|
||||
end
|
||||
|
||||
# TODO: do not run those tests on docker yet
|
||||
return if ENV['DOCKER']
|
||||
return unless os.linux?
|
||||
if !os.linux?
|
||||
STDERR.puts "\033[1;33mTODO: Not running #{__FILE__} because we are not on linux.\033[0m"
|
||||
return
|
||||
end
|
||||
|
||||
# direct access to params of apache conf
|
||||
describe apache_conf do
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
# encoding: utf-8
|
||||
|
||||
# TODO: do not run those tests on docker yet
|
||||
return if ENV['DOCKER']
|
||||
if ENV['DOCKER']
|
||||
STDERR.puts "\033[1;33mTODO: Not running #{__FILE__.split("/").last} because we are running in docker\033[0m"
|
||||
return
|
||||
end
|
||||
|
||||
# lets define our own group
|
||||
root_group = 'root'
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
# encoding: utf-8
|
||||
|
||||
# TODO: do not run those tests on docker yet
|
||||
return if ENV['DOCKER']
|
||||
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[:family] == 'freebsd'
|
||||
filedata = {
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
# encoding: utf-8
|
||||
|
||||
# TODO: do not run those tests on docker yet
|
||||
return if ENV['DOCKER']
|
||||
if ENV['DOCKER']
|
||||
STDERR.puts "\033[1;33mTODO: Not running #{__FILE__.split("/").last} because we are running in docker\033[0m"
|
||||
return
|
||||
end
|
||||
|
||||
case os[:family]
|
||||
when 'ubuntu', 'fedora'
|
||||
|
|
|
@ -1,8 +1,13 @@
|
|||
# encoding: utf-8
|
||||
if ENV['DOCKER']
|
||||
STDERR.puts "\033[1;33mTODO: Not running #{__FILE__.split("/").last} because we are running in docker\033[0m"
|
||||
return
|
||||
end
|
||||
|
||||
# TODO: do not run those tests on docker yet
|
||||
return if ENV['DOCKER']
|
||||
return unless os.linux?
|
||||
if !os.linux?
|
||||
STDERR.puts "\033[1;33mTODO: Not running #{__FILE__} because we are not on linux.\033[0m"
|
||||
return
|
||||
end
|
||||
|
||||
# Test kernel modules on all linux systems
|
||||
describe kernel_module('video') do
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
# encoding: utf-8
|
||||
|
||||
# TODO: do not run those tests on docker yet
|
||||
return if ENV['DOCKER']
|
||||
if ENV['DOCKER']
|
||||
STDERR.puts "\033[1;33mTODO: Not running #{__FILE__.split("/").last} because we are running in docker\033[0m"
|
||||
return
|
||||
end
|
||||
|
||||
# prepare values
|
||||
if ['ubuntu', 'centos', 'fedora', 'opensuse', 'debian'].include?(os[:family])
|
||||
|
|
|
@ -1,8 +1,13 @@
|
|||
# encoding: utf-8
|
||||
if ENV['DOCKER']
|
||||
STDERR.puts "\033[1;33mTODO: Not running #{__FILE__.split("/").last} because we are running in docker\033[0m"
|
||||
return
|
||||
end
|
||||
|
||||
# TODO: do not run those tests on docker yet
|
||||
return if ENV['DOCKER']
|
||||
return unless os.linux?
|
||||
if !os.linux?
|
||||
STDERR.puts "\033[1;33mTODO: Not running #{__FILE__} because we are not on linux.\033[0m"
|
||||
return
|
||||
end
|
||||
|
||||
# instead of `.with` or `.only_with` we recommend to use the `mount` resource
|
||||
describe mount '/mnt/iso-disk' do
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
# encoding: utf-8
|
||||
|
||||
# TODO: do not run those tests on docker yet
|
||||
return if ENV['DOCKER']
|
||||
if ENV['DOCKER']
|
||||
STDERR.puts "\033[1;33mTODO: Not running #{__FILE__.split("/").last} because we are running in docker\033[0m"
|
||||
return
|
||||
end
|
||||
|
||||
# check that ssh runs
|
||||
if os.unix?
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
# encoding: utf-8
|
||||
|
||||
# TODO: do not run those tests on docker yet
|
||||
return if ENV['DOCKER']
|
||||
if ENV['DOCKER']
|
||||
STDERR.puts "\033[1;33mTODO: Not running #{__FILE__.split("/").last} because we are running in docker\033[0m"
|
||||
return
|
||||
end
|
||||
|
||||
# postgres-server is installed on these platforms
|
||||
if ['ubuntu', 'centos'].include? os['family']
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
# encoding: utf-8
|
||||
|
||||
# TODO: do not run those tests on docker yet
|
||||
return if ENV['DOCKER']
|
||||
if ENV['DOCKER']
|
||||
STDERR.puts "\033[1;33mTODO: Not running #{__FILE__.split("/").last} because we are running in docker\033[0m"
|
||||
return
|
||||
end
|
||||
|
||||
# based on operating system we select the available service
|
||||
if ['centos', 'fedora', 'freebsd', 'opensuse'].include?(os[:family])
|
||||
|
|
Loading…
Add table
Reference in a new issue