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
|
2013-12-17 21:59:44 -06:00
|
|
|
it { should contain_class('glance::params') }
|
2013-06-20 10:20:22 -07:00
|
|
|
it { should contain_package('python-glanceclient').with(
|
|
|
|
:name => 'python-glanceclient',
|
2013-06-05 13:19:54 -04:00
|
|
|
:ensure => 'present'
|
|
|
|
)
|
|
|
|
}
|
|
|
|
end
|
|
|
|
|
|
|
|
context 'on Debian platforms' do
|
|
|
|
let :facts do
|
|
|
|
{ :osfamily => 'Debian' }
|
|
|
|
end
|
|
|
|
include_examples 'glance client'
|
|
|
|
end
|
|
|
|
|
|
|
|
context 'on RedHat platforms' do
|
|
|
|
let :facts do
|
|
|
|
{ :osfamily => 'RedHat' }
|
|
|
|
end
|
|
|
|
include_examples 'glance client'
|
|
|
|
end
|
2012-05-03 10:24:41 -05:00
|
|
|
end
|