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: I52f96ec57d6de09a09667eb3d72971fdd9984cce
Closes-Bug: #1693403
This commit is contained in:
ZhongShengping 2017-05-25 11:28:07 +08:00
parent 3b4214d140
commit 93ac5b6825
2 changed files with 4 additions and 6 deletions

View File

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

View File

@ -82,7 +82,7 @@ describe 'ironic::inspector::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'],
@ -96,7 +96,7 @@ describe 'ironic::inspector::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'],
@ -113,7 +113,6 @@ describe 'ironic::inspector::db' do
{ :database_connection => 'mysql+pymysql://ironic:ironic@localhost/ironic' }
end
it { is_expected.not_to contain_package('db_backend_package') }
end
end