Merge "add epel repo if adding rdo repo"

This commit is contained in:
Jenkins
2014-02-24 13:37:29 +00:00
committed by Gerrit Code Review
3 changed files with 10 additions and 0 deletions

View File

@@ -18,3 +18,4 @@ end
depends 'apt'
depends 'database'
depends 'yum', '~> 3.0'
depends 'yum-epel'

View File

@@ -41,6 +41,7 @@ when 'rhel'
if node['openstack']['yum']['rdo_enabled']
repo_action = :add
include_recipe 'yum-epel'
else
repo_action = :remove
end

View File

@@ -13,6 +13,10 @@ describe 'openstack-common::default' do
repo_name = 'RDO-testrelease'
expect(@chef_run).to add_yum_repository(repo_name)
end
it 'includes yum-epel recipe' do
expect(@chef_run).to include_recipe('yum-epel')
end
end
describe 'rhel-no-rdo' do
@@ -28,5 +32,9 @@ describe 'openstack-common::default' do
repo_name = 'RDO-testrelease'
expect(@chef_run).to remove_yum_repository(repo_name)
end
it 'does not include yum-epel recipe' do
expect(@chef_run).to_not include_recipe('yum-epel')
end
end
end