Merge "Do not assert implementation in puppet-postgresql"

This commit is contained in:
Zuul 2023-07-28 15:02:19 +00:00 committed by Gerrit Code Review
commit 40bc8f6492
1 changed files with 4 additions and 4 deletions

View File

@ -100,9 +100,8 @@ describe 'oslo::db' do
{ :connection => 'postgresql://db:db@localhost/db', }
end
it 'install the proper backend package' do
is_expected.to contain_package('python-psycopg2').with(:ensure => 'present')
end
it { is_expected.to contain_keystone_config('database/connection').with_value('postgresql://db:db@localhost/db').with_secret(true) }
it { is_expected.to contain_class('postgresql::lib::python') }
context 'with backend package management disabled' do
before do
@ -112,7 +111,7 @@ describe 'oslo::db' do
end
it 'does not install backend package' do
is_expected.not_to contain_package('python-psycopg2')
is_expected.not_to contain_class('postgresql::lib::python')
end
end
end
@ -123,6 +122,7 @@ describe 'oslo::db' do
end
it { is_expected.to contain_keystone_config('database/connection').with_value('postgresql+psycopg2://db:db@localhost/db').with_secret(true) }
it { is_expected.to contain_class('postgresql::lib::python') }
end
context 'with incorrect database_connection string' do