Missing some parameters to test in db.pp
Add max_pool_size and max_overflow options to test. Change-Id: I908ed86b2d1b19d8fbf37c56826d95c14296e62c Closes-Bug: #1694871
This commit is contained in:
parent
3f31782411
commit
71f4b1b71d
|
@ -11,8 +11,10 @@ describe 'cinder::db' do
|
||||||
:connection => 'sqlite:////var/lib/cinder/cinder.sqlite',
|
:connection => 'sqlite:////var/lib/cinder/cinder.sqlite',
|
||||||
:idle_timeout => '<SERVICE DEFAULT>',
|
:idle_timeout => '<SERVICE DEFAULT>',
|
||||||
:min_pool_size => '<SERVICE DEFAULT>',
|
:min_pool_size => '<SERVICE DEFAULT>',
|
||||||
|
:max_pool_size => '<SERVICE DEFAULT>',
|
||||||
:max_retries => '<SERVICE DEFAULT>',
|
:max_retries => '<SERVICE DEFAULT>',
|
||||||
:retry_interval => '<SERVICE DEFAULT>',
|
:retry_interval => '<SERVICE DEFAULT>',
|
||||||
|
:max_overflow => '<SERVICE DEFAULT>',
|
||||||
)}
|
)}
|
||||||
|
|
||||||
end
|
end
|
||||||
|
@ -23,8 +25,10 @@ describe 'cinder::db' do
|
||||||
:database_connection => 'mysql+pymysql://cinder:cinder@localhost/cinder',
|
:database_connection => 'mysql+pymysql://cinder:cinder@localhost/cinder',
|
||||||
:database_idle_timeout => '3601',
|
:database_idle_timeout => '3601',
|
||||||
:database_min_pool_size => '2',
|
:database_min_pool_size => '2',
|
||||||
|
:database_max_pool_size => '11',
|
||||||
:database_max_retries => '11',
|
:database_max_retries => '11',
|
||||||
:database_retry_interval => '11', }
|
:database_retry_interval => '11',
|
||||||
|
:database_max_overflow => '21', }
|
||||||
end
|
end
|
||||||
|
|
||||||
it { is_expected.to contain_oslo__db('cinder_config').with(
|
it { is_expected.to contain_oslo__db('cinder_config').with(
|
||||||
|
@ -32,8 +36,10 @@ describe 'cinder::db' do
|
||||||
:connection => 'mysql+pymysql://cinder:cinder@localhost/cinder',
|
:connection => 'mysql+pymysql://cinder:cinder@localhost/cinder',
|
||||||
:idle_timeout => '3601',
|
:idle_timeout => '3601',
|
||||||
:min_pool_size => '2',
|
:min_pool_size => '2',
|
||||||
|
:max_pool_size => '11',
|
||||||
:max_retries => '11',
|
:max_retries => '11',
|
||||||
:retry_interval => '11',
|
:retry_interval => '11',
|
||||||
|
:max_overflow => '21',
|
||||||
)}
|
)}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue