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:
parent
dc22ded3b3
commit
1432fd8a8c
@ -17,7 +17,7 @@ describe 'cinder::backend::dellemc_vmax_iscsi' do
|
|||||||
shared_examples 'cinder::backend::dellemc_vmax_iscsi' do
|
shared_examples 'cinder::backend::dellemc_vmax_iscsi' do
|
||||||
context 'dell emc vmax iscsi volume driver' do
|
context 'dell emc vmax iscsi volume driver' do
|
||||||
it {
|
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/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')
|
is_expected.to contain_cinder_config('dellemc_vmax_iscsi/cinder_emc_config_file').with_value('/etc/cinder/cinder_emc_config_CONF_GROUP_ISCSI.xml')
|
||||||
}
|
}
|
||||||
|
@ -28,7 +28,7 @@ describe 'cinder::backend::rbd' do
|
|||||||
|
|
||||||
context 'rbd backend volume driver' do
|
context 'rbd backend volume driver' do
|
||||||
it {
|
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_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]}/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])
|
is_expected.to contain_cinder_config("#{req_params[:volume_backend_name]}/rbd_ceph_conf").with_value(req_params[:rbd_ceph_conf])
|
||||||
|
Loading…
Reference in New Issue
Block a user