X-Git-Url: https://git.donarmstrong.com/?p=dsa-puppet.git;a=blobdiff_plain;f=3rdparty%2Fmodules%2Fglance%2Fspec%2Fclasses%2Fglance_client_spec.rb;fp=3rdparty%2Fmodules%2Fglance%2Fspec%2Fclasses%2Fglance_client_spec.rb;h=158b23fbadec7b6362da574ae09dd90ef38d5455;hp=0000000000000000000000000000000000000000;hb=4631045ebb77ee8622f6fa09277a50c372bcc02e;hpb=3d4dc4fd9e59bd0e07646c99f6b356c7d9d859aa diff --git a/3rdparty/modules/glance/spec/classes/glance_client_spec.rb b/3rdparty/modules/glance/spec/classes/glance_client_spec.rb new file mode 100644 index 00000000..158b23fb --- /dev/null +++ b/3rdparty/modules/glance/spec/classes/glance_client_spec.rb @@ -0,0 +1,28 @@ +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', + :tag => ['openstack'], + ) + } + 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