mirror of
https://github.com/inspec/inspec
synced 2024-11-10 15:14:23 +00:00
add package tests
This commit is contained in:
parent
20afebc1a6
commit
f15d05fd22
1 changed files with 11 additions and 0 deletions
11
test/integration/default/package_spec.rb
Normal file
11
test/integration/default/package_spec.rb
Normal file
|
@ -0,0 +1,11 @@
|
|||
# encoding: utf-8
|
||||
|
||||
if ['centos', 'fedora', 'opensuse', 'debian', 'ubuntu'].include?(os[:family])
|
||||
describe package('curl') do
|
||||
it { should be_installed }
|
||||
end
|
||||
|
||||
describe package('nginx') do
|
||||
it { should_not be_installed }
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue