Fix unit test

The db_backend_package name has changed in puppet-oslo[0], so fix it.

[0]: https://review.openstack.org/#/c/467582/

Change-Id: Id13a756cd8b2aace71c47d7d061e77e6cc1dfcf6
Closes-Bug: #1693403
This commit is contained in:
ZhongShengping 2017-05-25 10:52:26 +08:00
parent f851057b7e
commit c97e1eb123
1 changed files with 3 additions and 5 deletions

View File

@ -62,7 +62,7 @@ describe 'aodh::db' do
end
it 'installs python-mongodb package' do
is_expected.to contain_package('db_backend_package').with(
is_expected.to contain_package('python-pymongo').with(
:ensure => 'present',
:name => 'python-pymongo',
:tag => 'openstack'
@ -98,7 +98,7 @@ describe 'aodh::db' do
end
it 'install the proper backend package' do
is_expected.to contain_package('db_backend_package').with(
is_expected.to contain_package('python-pysqlite2').with(
:ensure => 'present',
:name => 'python-pysqlite2',
:tag => 'openstack'
@ -112,7 +112,7 @@ describe 'aodh::db' do
end
it 'install the proper backend package' do
is_expected.to contain_package('db_backend_package').with(
is_expected.to contain_package('python-pymysql').with(
:ensure => 'present',
:name => 'python-pymysql',
:tag => 'openstack'
@ -126,8 +126,6 @@ describe 'aodh::db' do
let :params do
{ :database_connection => 'mysql+pymysql://aodh:aodh@localhost/aodh', }
end
it { is_expected.not_to contain_package('db_backend_package') }
end
end