Fix unit tests incompatible with puppetlab-stdlib 8.0.0

Since puppetlabs-stdlib 8.0.0, ensure_packages automatically translates
'ensure => present'  to 'ensure => installed' and that translation
breaks existing assertions in unit tests.

Change-Id: I23d6e6d23b5f4aa691731daea6b0318ec46c5610
This commit is contained in:
Takashi Kajinami 2021-09-24 00:29:28 +09:00
parent dc22ded3b3
commit 1432fd8a8c
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ describe 'cinder::backend::dellemc_vmax_iscsi' do
shared_examples 'cinder::backend::dellemc_vmax_iscsi' do
context 'dell emc vmax iscsi volume driver' do
it {
is_expected.to contain_package('pywbem').with(:ensure => :present)
is_expected.to contain_package('pywbem').with_ensure('installed')
is_expected.to contain_cinder_config('dellemc_vmax_iscsi/volume_driver').with_value('cinder.volume.drivers.dell_emc.vmax.iscsi.VMAXISCSIDriver')
is_expected.to contain_cinder_config('dellemc_vmax_iscsi/cinder_emc_config_file').with_value('/etc/cinder/cinder_emc_config_CONF_GROUP_ISCSI.xml')
}

View File

@ -28,7 +28,7 @@ describe 'cinder::backend::rbd' do
context 'rbd backend volume driver' do
it {
is_expected.to contain_package('ceph-common').with_ensure('present')
is_expected.to contain_package('ceph-common').with_ensure('installed')
is_expected.to contain_cinder_config("#{req_params[:volume_backend_name]}/volume_backend_name").with_value(req_params[:volume_backend_name])
is_expected.to contain_cinder_config("#{req_params[:volume_backend_name]}/volume_driver").with_value('cinder.volume.drivers.rbd.RBDDriver')
is_expected.to contain_cinder_config("#{req_params[:volume_backend_name]}/rbd_ceph_conf").with_value(req_params[:rbd_ceph_conf])