]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - 3rdparty/modules/cinder/spec/classes/cinder_vmware_spec.rb
try again, with puppetforge modules, correctly included now
[dsa-puppet.git] / 3rdparty / modules / cinder / spec / classes / cinder_vmware_spec.rb
diff --git a/3rdparty/modules/cinder/spec/classes/cinder_vmware_spec.rb b/3rdparty/modules/cinder/spec/classes/cinder_vmware_spec.rb
new file mode 100644 (file)
index 0000000..7056136
--- /dev/null
@@ -0,0 +1,35 @@
+require 'spec_helper'
+
+describe 'cinder::vmware' do
+
+  let :params do
+    {:os_password => 'asdf',
+     :os_tenant_name => 'admin',
+     :os_username => 'admin',
+     :os_auth_url => 'http://127.127.127.1:5000/v2.0/'}
+  end
+
+  describe 'with defaults' do
+    it 'should create vmware special types' do
+      should contain_cinder__type('vmware-thin').with(
+                 :set_key => 'vmware:vmdk_type',
+                 :set_value => 'thin')
+
+      should contain_cinder__type('vmware-thick').with(
+                 :set_key => 'vmware:vmdk_type',
+                 :set_value => 'thick')
+
+      should contain_cinder__type('vmware-eagerZeroedThick').with(
+                 :set_key => 'vmware:vmdk_type',
+                 :set_value => 'eagerZeroedThick')
+
+      should contain_cinder__type('vmware-full').with(
+                 :set_key => 'vmware:clone_type',
+                 :set_value => 'full')
+
+      should contain_cinder__type('vmware-linked').with(
+                 :set_key => 'vmware:clone_type',
+                 :set_value => 'linked')
+    end
+  end
+end