
include_class is deprecated since rspec-puppet 1.0.0. contain_class should be used instead. Closes-bug: #1263617 Change-Id: I63fed009811684de1441a7b9d43325415d1860f9
48 lines
1.3 KiB
Ruby
48 lines
1.3 KiB
Ruby
require 'spec_helper'
|
|
|
|
describe 'openstack::client' do
|
|
|
|
let :facts do
|
|
{ :osfamily => 'Debian', :operatingsystem => 'Ubuntu' }
|
|
end
|
|
|
|
describe 'with default params' do
|
|
it { should contain_class('ceilometer::client') }
|
|
it { should contain_class('cinder::client') }
|
|
it { should contain_class('glance::client') }
|
|
it { should contain_class('keystone::client') }
|
|
it { should contain_class('nova::client') }
|
|
it { should contain_class('neutron::client') }
|
|
end
|
|
|
|
describe 'without ceilometer' do
|
|
let (:params) { {:ceilometer => false }}
|
|
it { should_not contain_class('ceilometer::client') }
|
|
end
|
|
|
|
describe 'without cinder' do
|
|
let (:params) { {:cinder => false }}
|
|
it { should_not contain_class('cinder::client') }
|
|
end
|
|
|
|
describe 'without glance' do
|
|
let (:params) { {:glance => false }}
|
|
it { should_not contain_class('glance::client') }
|
|
end
|
|
|
|
describe 'without keystone' do
|
|
let (:params) { {:keystone => false }}
|
|
it { should_not contain_class('keystone::client') }
|
|
end
|
|
|
|
describe 'without nova' do
|
|
let (:params) { {:nova => false }}
|
|
it { should_not contain_class('nova::client') }
|
|
end
|
|
|
|
describe 'without neutron' do
|
|
let (:params) { {:neutron => false }}
|
|
it { should_not contain_class('neutron::client') }
|
|
end
|
|
end
|