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:
parent
4b790c23b0
commit
4fa9f61485
|
@ -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'],
|
||||
)
|
||||
|
|
|
@ -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'],
|
||||
)
|
||||
|
|
|
@ -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'],
|
||||
)
|
||||
|
|
|
@ -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'],
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue