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: Ia1e8ba78c94f86e221e934fcaf0f488eef3d70a9
Closes-Bug: #1693403
This commit is contained in:
ZhongShengping 2017-05-25 11:32:33 +08:00
parent ff840a8d20
commit 5c79055fe0
1 changed files with 2 additions and 3 deletions

View File

@ -92,7 +92,6 @@ describe 'nova::db' do
{ :database_connection => 'mysql+pymysql://user:pass@db/db', }
end
it { is_expected.not_to contain_package('db_backend_package') }
end
end
@ -104,7 +103,7 @@ describe 'nova::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'],
@ -118,7 +117,7 @@ describe 'nova::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'],