2012-05-03 10:24:41 -05:00
|
|
|
require 'spec_helper'
|
|
|
|
|
2013-06-05 13:19:54 -04:00
|
|
|
describe 'glance::client' do
|
|
|
|
|
|
|
|
shared_examples 'glance client' do
|
2015-02-25 05:37:44 +01:00
|
|
|
it { is_expected.to contain_class('glance::params') }
|
|
|
|
it { is_expected.to contain_package('python-glanceclient').with(
|
2013-06-20 10:20:22 -07:00
|
|
|
:name => 'python-glanceclient',
|
2015-01-30 18:57:13 -07:00
|
|
|
:ensure => 'present',
|
|
|
|
:tag => ['openstack'],
|
2013-06-05 13:19:54 -04:00
|
|
|
)
|
|
|
|
}
|
|
|
|
end
|
|
|
|
|
|
|
|
context 'on Debian platforms' do
|
|
|
|
let :facts do
|
2015-10-21 12:54:54 +03:00
|
|
|
@default_facts.merge({
|
|
|
|
:osfamily => 'Debian',
|
|
|
|
})
|
2013-06-05 13:19:54 -04:00
|
|
|
end
|
|
|
|
include_examples 'glance client'
|
|
|
|
end
|
|
|
|
|
|
|
|
context 'on RedHat platforms' do
|
|
|
|
let :facts do
|
2015-10-21 12:54:54 +03:00
|
|
|
@default_facts.merge({
|
2015-11-24 10:02:50 +01:00
|
|
|
:osfamily => 'RedHat',
|
|
|
|
:operatingsystemrelease => '7',
|
2015-10-21 12:54:54 +03:00
|
|
|
})
|
2013-06-05 13:19:54 -04:00
|
|
|
end
|
|
|
|
include_examples 'glance client'
|
|
|
|
end
|
2012-05-03 10:24:41 -05:00
|
|
|
end
|