ec77314554
This commit adds basic test coverage. It is no 100% coverage, but its a great start.
12 lines
396 B
Ruby
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
|