puppet-cinder/spec/classes/cinder_setup_test_volume_spec.rb
Dan Bode ec77314554 Add basic spec tests
This commit adds basic test coverage. It is no
100% coverage, but its a great start.
2012-10-29 12:58:03 -07:00

12 lines
396 B
Ruby

require 'spec_helper'
describe 'cinder::setup_test_volume' do
it 'should contain volume creation execs' do
should contain_exec('/bin/dd if=/dev/zero of=cinder-volumes bs=1 count=0 seek=4G')
should contain_exec('/sbin/losetup /dev/loop2 cinder-volumes')
should contain_exec('/sbin/pvcreate /dev/loop2')
should contain_exec('/sbin/vgcreate cinder-volumes /dev/loop2')
end
end