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:
parent
524db15a0a
commit
11babea0d1
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user