
Add acceptance tests for puppet-cgit module so that once the module is applied we check if files were created, packages were installed and services were started. Co-Authored-By: Bruno Tavares <btavare@thoughtworks.com> Co-Authored-By: Danilo Ramalho <dramalho@thoughtworks.com> Change-Id: I8d12999b6d91f1ab67fa16d6bbd8bc1d2efa3a05
30 lines
633 B
Ruby
30 lines
633 B
Ruby
require 'spec_helper_acceptance'
|
|
|
|
describe 'required os packages', :if => ['fedora', 'redhat'].include?(os[:family]) do
|
|
required_packages = [
|
|
package('mod_ldap'),
|
|
package('cgit'),
|
|
package('git-daemon'),
|
|
package('highlight'),
|
|
]
|
|
|
|
required_packages.each do |package|
|
|
describe package do
|
|
it { should be_installed }
|
|
end
|
|
end
|
|
end
|
|
|
|
describe 'required os packages', :if => ['debian', 'ubuntu'].include?(os[:family]) do
|
|
required_packages = [
|
|
package('socat'),
|
|
package('lsof'),
|
|
]
|
|
|
|
required_packages.each do |package|
|
|
describe package do
|
|
it { should be_installed }
|
|
end
|
|
end
|
|
end
|