3 describe 'cinder::setup_test_volume' do
5 it { should contain_package('lvm2').with(
9 it { should contain_file('/var/lib/cinder').with(
10 :ensure => 'directory',
11 :require => 'Package[cinder]'
14 it 'should contain volume creation execs' do
15 should contain_exec('create_/var/lib/cinder/cinder-volumes').with(
16 :command => 'dd if=/dev/zero of="/var/lib/cinder/cinder-volumes" bs=1 count=0 seek=4G'
18 should contain_exec('losetup /dev/loop2 /var/lib/cinder/cinder-volumes')
19 should contain_exec('pvcreate /dev/loop2')
20 should contain_exec('vgcreate cinder-volumes /dev/loop2')