37 lines
1.1 KiB
Ruby
37 lines
1.1 KiB
Ruby
require 'spec_helper'
|
|
|
|
shared_context :epel_debuginfo do
|
|
it do
|
|
should contain_yumrepo('epel-debuginfo').with({
|
|
'proxy' => 'absent',
|
|
'failovermethod' => 'priority',
|
|
'enabled' => '0',
|
|
'gpgcheck' => '1',
|
|
})
|
|
end
|
|
end
|
|
|
|
shared_context :epel_debuginfo_6 do
|
|
include_context :epel_debuginfo
|
|
|
|
it do
|
|
should contain_yumrepo('epel-debuginfo').with({
|
|
'mirrorlist' => "http://mirrors.fedoraproject.org/mirrorlist?repo=epel-debug-6&arch=$basearch",
|
|
'gpgkey' => "file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6",
|
|
'descr' => "Extra Packages for Enterprise Linux 6 - $basearch - Debug",
|
|
})
|
|
end
|
|
end
|
|
|
|
shared_context :epel_debuginfo_5 do
|
|
include_context :epel_debuginfo
|
|
|
|
it do
|
|
should contain_yumrepo('epel-debuginfo').with({
|
|
'mirrorlist' => "http://mirrors.fedoraproject.org/mirrorlist?repo=epel-debug-5&arch=$basearch",
|
|
'gpgkey' => "file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-5",
|
|
'descr' => "Extra Packages for Enterprise Linux 5 - $basearch - Debug",
|
|
})
|
|
end
|
|
end
|