diff --git a/manifests/setup_test_volume.pp b/manifests/setup_test_volume.pp index b710e8f0..0f183064 100644 --- a/manifests/setup_test_volume.pp +++ b/manifests/setup_test_volume.pp @@ -23,13 +23,7 @@ class cinder::setup_test_volume( ) { package { 'lvm2': - ensure => present, - } ~> - - file { $volume_path: - ensure => directory, - owner => 'cinder', - group => 'cinder', + ensure => present, require => Package['cinder'], } ~> diff --git a/spec/classes/cinder_setup_test_volume_spec.rb b/spec/classes/cinder_setup_test_volume_spec.rb index 08e46864..883c5527 100644 --- a/spec/classes/cinder_setup_test_volume_spec.rb +++ b/spec/classes/cinder_setup_test_volume_spec.rb @@ -3,11 +3,7 @@ require 'spec_helper' describe 'cinder::setup_test_volume' do it { is_expected.to contain_package('lvm2').with( - :ensure => 'present' - ) } - - it { is_expected.to contain_file('/var/lib/cinder').with( - :ensure => 'directory', + :ensure => 'present', :require => 'Package[cinder]' ) }