Files
puppet-openstack/spec/classes/openstack_client_spec.rb
Michael Chapman bb9ec20383 Add an openstack::client class for client nodes
Add a class that can be used to create nodes that contain
only the openstack client libraries.

Also add ceilometer to fixtures so tests pass.

Change-Id: I0b9175a582b42fac5cb9f9a10bd5bc877de8632d
2013-06-07 11:41:40 +10:00

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 include_class('ceilometer::client') }
it { should include_class('cinder::client') }
it { should include_class('glance::client') }
it { should include_class('keystone::client') }
it { should include_class('nova::client') }
it { should include_class('quantum::client') }
end
describe 'without ceilometer' do
let (:params) { {:ceilometer => false }}
it { should_not include_class('ceilometer::client') }
end
describe 'without cinder' do
let (:params) { {:cinder => false }}
it { should_not include_class('cinder::client') }
end
describe 'without glance' do
let (:params) { {:glance => false }}
it { should_not include_class('glance::client') }
end
describe 'without keystone' do
let (:params) { {:keystone => false }}
it { should_not include_class('keystone::client') }
end
describe 'without nova' do
let (:params) { {:nova => false }}
it { should_not include_class('nova::client') }
end
describe 'without quantum' do
let (:params) { {:quantum => false }}
it { should_not include_class('quantum::client') }
end
end