Fix database test in keystone class test

We were checking for the value of a database setting which is now
managed via puppet-olso in the keystone init class.  We should not be
checking the values set by another class in the unit tests. This change
updates the unit tests to just make sure we're including the
keystone::db class rather than the values configured by it.

Change-Id: I0a1b1adec24ba528b623ad0b17e5bba16e0b279a
This commit is contained in:
Alex Schultz 2019-04-30 08:13:17 -06:00
parent 49f89f39bd
commit ce7fd5d0a8
1 changed files with 1 additions and 6 deletions

View File

@ -46,8 +46,6 @@ describe 'keystone' do
'ssl_cert_subject' => '/C=US/ST=Unset/L=Unset/O=Unset/CN=localhost',
'enabled' => true,
'manage_service' => true,
'database_connection' => 'sqlite:////var/lib/keystone/keystone.db',
'database_idle_timeout' => '200',
'default_transport_url' => '<SERVICE DEFAULT>',
'notification_transport_url' => '<SERVICE DEFAULT>',
'rabbit_heartbeat_timeout_threshold' => '<SERVICE DEFAULT>',
@ -88,8 +86,6 @@ describe 'keystone' do
'ssl_cert_subject' => '/C=US/ST=Unset/L=Unset/O=Unset/CN=localhost',
'enabled' => false,
'manage_service' => true,
'database_connection' => 'mysql://a:b@c/d',
'database_idle_timeout' => '300',
'default_transport_url' => 'rabbit://user:pass@host:1234/virt',
'notification_transport_url' => 'rabbit://user:pass@host:1234/virt',
'rabbit_heartbeat_timeout_threshold' => '60',
@ -169,8 +165,7 @@ describe 'keystone' do
end
it 'should contain correct mysql config' do
is_expected.to contain_keystone_config('database/connection_recycle_time').with_value(param_hash['database_idle_timeout'])
is_expected.to contain_keystone_config('database/connection').with_value(param_hash['database_connection']).with_secret(true)
is_expected.to contain_class('keystone::db')
end
it { is_expected.to contain_keystone_config('token/provider').with_value(