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: Ibfda6f366e9082bb96fce993563afb7f327e1b74
This commit is contained in:
Takashi Kajinami 2021-09-24 00:13:39 +09:00
parent 8bd0354b7e
commit 8762eb9de8
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ describe 'manila::ganesha' do
shared_examples_for 'manila::ganesha on RedHat' do
it { is_expected.to contain_package('nfs-ganesha').with(
:name => 'nfs-ganesha',
:ensure => 'present',
:ensure => 'installed',
) }
end

View File

@ -53,7 +53,7 @@ describe 'manila::backend::ganesha' do
it { is_expected.to contain_package('nfs-ganesha').with(
:name => 'nfs-ganesha',
:ensure => 'present',
:ensure => 'installed'
) }
end