Separate api and registry packages for Red Hat

Starting in Kilo, Red Hat-based platforms are using separate
glance-api and glance-registry packages (for an example, see
http://trunk.rdoproject.org/f21/current/).

Change-Id: I3ad476846d7dec3ca612e5b0d20b21b8577f4af0
This commit is contained in:
Javier Pena
2015-04-10 16:23:50 +02:00
parent 81a9c1acb1
commit 5f15e05704
9 changed files with 39 additions and 55 deletions

View File

@@ -427,8 +427,6 @@ describe 'glance::api' do
end
let(:params) { default_params }
# We only test this on Debian platforms, since on RedHat there isn't a
# separate package for glance API.
['present', 'latest'].each do |package_ensure|
context "with package_ensure '#{package_ensure}'" do
let(:params) { default_params.merge({ :package_ensure => package_ensure }) }
@@ -446,9 +444,15 @@ describe 'glance::api' do
end
let(:params) { default_params }
it { is_expected.to contain_package('openstack-glance').with(
:tag => ['openstack'],
)}
['present', 'latest'].each do |package_ensure|
context "with package_ensure '#{package_ensure}'" do
let(:params) { default_params.merge({ :package_ensure => package_ensure }) }
it { is_expected.to contain_package('openstack-glance-api').with(
:ensure => package_ensure,
:tag => ['openstack']
)}
end
end
end
describe 'on unknown platforms' do