2208119f8d
Per rspec-puppet-1.0.1 warning: DEPRECATION: include_class is deprecated. Use contain_class instead. Called from .../vendor/gems/rspec-puppet-1.0.1/lib/rspec-puppet/ matchers/include_class.rb:7 Change-Id: I3cf9ac1ff9549b5bb1182010d42e3beee1efa4cc
28 lines
570 B
Ruby
28 lines
570 B
Ruby
require 'spec_helper'
|
|
|
|
describe 'glance::client' do
|
|
|
|
shared_examples 'glance client' do
|
|
it { should contain_class('glance::params') }
|
|
it { should contain_package('python-glanceclient').with(
|
|
:name => 'python-glanceclient',
|
|
: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
|
|
end
|