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: I17915fdf107d7af28efa553316cc95faba9dfab7
Closes-Bug: #1693403
This commit is contained in:
ZhongShengping 2017-05-25 11:30:25 +08:00
parent 8daee1fa49
commit ec8fb2e460
1 changed files with 2 additions and 3 deletions

View File

@ -92,7 +92,7 @@ describe 'mistral::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'],
@ -107,7 +107,7 @@ describe 'mistral::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'],
@ -132,7 +132,6 @@ describe 'mistral::db' do
{ :database_connection => 'mysql+pymysql://mistral:mistral@localhost/mistral', }
end
it { is_expected.not_to contain_package('db_backend_package') }
end
end