Add missing glance::params include in client
Change-Id: Ia5f99939f10a78033b743aca4a289b1e8d314e02
This commit is contained in:
parent
94f25c83da
commit
1028e92f81
|
@ -8,6 +8,8 @@ class glance::client (
|
|||
$ensure = 'present'
|
||||
) {
|
||||
|
||||
include glance::params
|
||||
|
||||
package { 'python-glance':
|
||||
name => $::glance::params::client_package_name,
|
||||
ensure => $ensure,
|
||||
|
|
|
@ -1,5 +1,27 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe 'glance::client' do
|
||||
it { should contain_package('python-glance').with_ensure('present') }
|
||||
describe 'glance::client' do
|
||||
|
||||
shared_examples 'glance client' do
|
||||
it { should include_class('glance::params') }
|
||||
it { should contain_package('python-glance').with(
|
||||
:name => 'python-glance',
|
||||
: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
|
||||
|
|
Loading…
Reference in New Issue