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: If92b3815bc7ea5035b112cd5718613b33e42641e
This commit is contained in:
Takashi Kajinami 2021-09-24 00:21:12 +09:00
parent d34ea08640
commit 8f1d58394a

View File

@ -25,7 +25,7 @@ describe 'horizon::dashboard' do
shared_examples 'horizon::dashboard' do
context 'with default' do
it { should contain_package(platform_params[:heat_dashboard_package_name]).with(
:ensure => 'present',
:ensure => 'installed',
:tag => ['horizon-dashboard-package']
)}
end
@ -51,7 +51,7 @@ describe 'horizon::dashboard' do
context 'with default' do
it { should contain_package('python3-heat-dashboard').with(
:ensure => 'present',
:ensure => 'installed',
:tag => ['horizon-dashboard-package']
)}
end
@ -60,7 +60,7 @@ describe 'horizon::dashboard' do
shared_examples 'horizon::dashboard on Ubuntu' do
context 'with default' do
it { should contain_package('python3-heat-dashboard').with(
:ensure => 'present',
:ensure => 'installed',
:tag => ['horizon-dashboard-package']
)}
end