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: I09aa9cc8d7b3294e6f2d6aa97d33600a54615b63
This commit is contained in:
Takashi Kajinami 2021-09-24 00:26:45 +09:00
parent 4b790c23b0
commit 4fa9f61485
4 changed files with 5 additions and 5 deletions

View File

@ -42,12 +42,12 @@ describe 'ironic::drivers::ansible' do
it 'installs ansible package' do
is_expected.to contain_package('ansible').with(
:ensure => 'present',
:ensure => 'installed',
:name => 'ansible',
:tag => ['openstack', 'ironic-package'],
)
is_expected.to contain_package('systemd-python').with(
:ensure => 'present',
:ensure => 'installed',
:name => platform_params[:systemd_python_package],
:tag => ['openstack', 'ironic-package'],
)

View File

@ -25,7 +25,7 @@ describe 'ironic::drivers::drac' do
it 'installs dracclient package' do
is_expected.to contain_package('python-dracclient').with(
:ensure => 'present',
:ensure => 'installed',
:name => platform_params[:dracclient_package_name],
:tag => ['openstack', 'ironic-package'],
)

View File

@ -35,7 +35,7 @@ describe 'ironic::drivers::ilo' do
it 'installs proliantutils package' do
is_expected.to contain_package('python-proliantutils').with(
:ensure => 'present',
:ensure => 'installed',
:name => platform_params[:proliantutils_package_name],
:tag => ['openstack', 'ironic-package'],
)

View File

@ -42,7 +42,7 @@ describe 'ironic::drivers::redfish' do
it 'installs sushy package' do
is_expected.to contain_package('python-sushy').with(
:ensure => 'present',
:ensure => 'installed',
:name => platform_params[:sushy_package_name],
:tag => ['openstack', 'ironic-package'],
)