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: I7a75ca9fcd6e9a9c2a88455567083e9c4067fa6d
Closes-Bug: #1693403
This commit is contained in:
ZhongShengping 2017-05-25 11:14:54 +08:00
parent 524db15a0a
commit 11babea0d1
3 changed files with 3 additions and 6 deletions

View File

@ -66,7 +66,7 @@ describe 'glance::api::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'
@ -81,7 +81,6 @@ describe 'glance::api::db' do
{ :database_connection => 'mysql+pymysql://glance_api:glance@localhost/glance', }
end
it { is_expected.not_to contain_package('db_backend_package') }
end
end

View File

@ -59,7 +59,7 @@ describe 'glance::glare::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'
@ -74,7 +74,6 @@ describe 'glance::glare::db' do
{ :database_connection => 'mysql+pymysql://glance_glare:glance@localhost/glance', }
end
it { is_expected.not_to contain_package('db_backend_package') }
end
end

View File

@ -66,7 +66,7 @@ describe 'glance::registry::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'
@ -81,7 +81,6 @@ describe 'glance::registry::db' do
{ :database_connection => 'mysql+pymysql://glance_registry:glance@localhost/glance', }
end
it { is_expected.not_to contain_package('db_backend_package') }
end
end