From 8f1d58394ac8c7b6b9609a2c3eb538a143200bbd Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Fri, 24 Sep 2021 00:21:12 +0900 Subject: [PATCH] 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 --- spec/defines/horizon_dashboard_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/defines/horizon_dashboard_spec.rb b/spec/defines/horizon_dashboard_spec.rb index 3648ec9e..9032db54 100644 --- a/spec/defines/horizon_dashboard_spec.rb +++ b/spec/defines/horizon_dashboard_spec.rb @@ -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