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: Ie5e9cb8d245187fc6d363a8eb3bc1c3d899ae864
This commit is contained in:
parent
71d3c8cf47
commit
f9414832fc
|
@ -85,7 +85,7 @@ describe 'oslo::cache' do
|
|||
it 'configures cache backend' do
|
||||
is_expected.to contain_keystone_config('cache/backend').with_value('dogpile.cache.pylibmc')
|
||||
is_expected.to contain_package('python-pylibmc').with(
|
||||
:ensure => 'present',
|
||||
:ensure => 'installed',
|
||||
:name => platform_params[:pylibmc_package_name],
|
||||
:tag => 'openstack',
|
||||
)
|
||||
|
@ -130,7 +130,7 @@ describe 'oslo::cache' do
|
|||
it 'configures cache backend' do
|
||||
is_expected.to contain_keystone_config('cache/backend').with_value('dogpile.cache.memcache')
|
||||
is_expected.to contain_package('python-memcache').with(
|
||||
:ensure => 'present',
|
||||
:ensure => 'installed',
|
||||
:name => platform_params[:python_memcache_package_name],
|
||||
:tag => ['openstack'],
|
||||
)
|
||||
|
@ -175,7 +175,7 @@ describe 'oslo::cache' do
|
|||
it 'configures cache backend' do
|
||||
is_expected.to contain_keystone_config('cache/backend').with_value('oslo_cache.etcd3gw')
|
||||
is_expected.to contain_package('python-etcd3gw').with(
|
||||
:ensure => 'present',
|
||||
:ensure => 'installed',
|
||||
:name => platform_params[:python_etcd3gw_package_name],
|
||||
:tag => ['openstack'],
|
||||
)
|
||||
|
|
|
@ -22,7 +22,7 @@ describe 'oslo::coordination' do
|
|||
|
||||
is_expected.to contain_package('python-redis').with(
|
||||
:name => platform_params[:python_redis_package_name],
|
||||
:ensure => 'present',
|
||||
:ensure => 'installed',
|
||||
:tag => 'openstack',
|
||||
)
|
||||
end
|
||||
|
@ -51,7 +51,7 @@ describe 'oslo::coordination' do
|
|||
if platform_params[:python_etcd3_package_name]
|
||||
is_expected.to contain_package('python-etcd3').with(
|
||||
:name => platform_params[:python_etcd3_package_name],
|
||||
:ensure => 'present',
|
||||
:ensure => 'installed',
|
||||
:tag => 'openstack',
|
||||
)
|
||||
else
|
||||
|
@ -128,7 +128,7 @@ describe 'oslo::coordination' do
|
|||
|
||||
is_expected.to contain_package('python-pymemcache').with(
|
||||
:name => platform_params[:python_pymemcache_package_name],
|
||||
:ensure => 'present',
|
||||
:ensure => 'installed',
|
||||
:tag => 'openstack',
|
||||
)
|
||||
end
|
||||
|
@ -157,7 +157,7 @@ describe 'oslo::coordination' do
|
|||
|
||||
is_expected.to contain_package('python-redis').with(
|
||||
:name => platform_params[:python_redis_package_name],
|
||||
:ensure => 'present',
|
||||
:ensure => 'installed',
|
||||
:tag => 'openstack',
|
||||
)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue