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: Ia6f210a661687064b68c864f7064083bc1e71b69
This commit is contained in:
parent
c4acfa5fe3
commit
41e4be6d95
@ -19,7 +19,7 @@ require 'spec_helper'
|
|||||||
describe 'neutron::agents::bgp_dragent' do
|
describe 'neutron::agents::bgp_dragent' do
|
||||||
let :default_params do
|
let :default_params do
|
||||||
{
|
{
|
||||||
:package_ensure => 'present',
|
:package_ensure => 'installed',
|
||||||
:enabled => true,
|
:enabled => true,
|
||||||
:manage_service => true,
|
:manage_service => true,
|
||||||
:bgp_speaker_driver => 'neutron_dynamic_routing.services.bgp.agent.driver.os_ken.driver.OsKenBgpDriver',
|
:bgp_speaker_driver => 'neutron_dynamic_routing.services.bgp.agent.driver.os_ken.driver.OsKenBgpDriver',
|
||||||
|
@ -9,7 +9,7 @@ describe 'neutron::agents::bigswitch' do
|
|||||||
context 'neutron bigswitch base' do
|
context 'neutron bigswitch base' do
|
||||||
it 'should have' do
|
it 'should have' do
|
||||||
should contain_package('python3-networking-bigswitch').with(
|
should contain_package('python3-networking-bigswitch').with(
|
||||||
:ensure => 'present',
|
:ensure => 'installed',
|
||||||
:tag => ['openstack', 'neutron-package'],
|
:tag => ['openstack', 'neutron-package'],
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
@ -13,7 +13,7 @@ describe 'neutron::plugins::ml2::bigswitch' do
|
|||||||
|
|
||||||
let :default_params do
|
let :default_params do
|
||||||
{
|
{
|
||||||
:package_ensure => 'present'
|
:package_ensure => 'installed'
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user