]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - 3rdparty/modules/glance/spec/classes/glance_client_spec.rb
try again, with puppetforge modules, correctly included now
[dsa-puppet.git] / 3rdparty / modules / glance / spec / classes / glance_client_spec.rb
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 (file)
index 0000000..158b23f
--- /dev/null
@@ -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