File tree Expand file tree Collapse file tree 4 files changed +28
-28
lines changed Expand file tree Collapse file tree 4 files changed +28
-28
lines changed Original file line number Diff line number Diff line change 1010 $jdbc_ssl_properties = $puppetdb::params::jdbc_ssl_properties,
1111) inherits puppetdb::params {
1212 if ($database_password != undef and $jdbc_ssl_properties == false ) {
13- postgresql::validate_db_connection { 'validate puppetdb postgres connection' :
14- database_host => $database_host ,
15- database_port => $database_port ,
16- database_username => $database_username ,
17- database_password => $database_password ,
18- database_name => $database_name ,
13+ postgresql_conn_validator { 'validate puppetdb postgres connection' :
14+ host => $database_host ,
15+ port => $database_port ,
16+ db_username => $database_username ,
17+ db_password => $database_password ,
18+ db_name => $database_name ,
1919 }
2020 }
2121}
Original file line number Diff line number Diff line change 1010 $jdbc_ssl_properties = $puppetdb::params::jdbc_ssl_properties,
1111) inherits puppetdb::params {
1212 if ($database_password != undef and $jdbc_ssl_properties == false ) {
13- postgresql::validate_db_connection { 'validate puppetdb postgres (read) connection' :
14- database_host => $database_host ,
15- database_port => $database_port ,
16- database_username => $database_username ,
17- database_password => $database_password ,
18- database_name => $database_name ,
13+ postgresql_conn_validator { 'validate puppetdb postgres (read) connection' :
14+ host => $database_host ,
15+ port => $database_port ,
16+ db_username => $database_username ,
17+ db_password => $database_password ,
18+ db_name => $database_name ,
1919 }
2020 }
2121}
Original file line number Diff line number Diff line change 2323 )
2424 }
2525
26- it { is_expected . not_to contain_postgresql__validate_db_connection ( 'validate puppetdb postgres connection' ) }
26+ it { is_expected . not_to contain_postgresql_conn_validateor ( 'validate puppetdb postgres connection' ) }
2727 end
2828
2929 context 'with parameter tests' do
3030 let ( :params ) { { jdbc_ssl_properties : false } }
3131
3232 context 'with jdbc_ssl_properties set false' do
3333 it {
34- is_expected . to contain_postgresql__validate_db_connection ( 'validate puppetdb postgres connection' )
34+ is_expected . to contain_postgresql_conn_validator ( 'validate puppetdb postgres connection' )
3535 . with (
36- database_host : 'localhost' ,
37- database_port : '5432' ,
38- database_username : 'puppetdb' ,
39- database_password : 'puppetdb' ,
40- database_name : 'puppetdb' ,
36+ host : 'localhost' ,
37+ port : '5432' ,
38+ db_username : 'puppetdb' ,
39+ db_password : 'puppetdb' ,
40+ db_name : 'puppetdb' ,
4141 )
4242 }
4343 end
4444
4545 context 'without database password' do
4646 let ( :params ) { { database_password : nil } }
4747
48- it { is_expected . not_to contain_postgresql__validate_db_connection ( 'validate puppetdb postgres connection' ) }
48+ it { is_expected . not_to contain_postgresql_conn_validator ( 'validate puppetdb postgres connection' ) }
4949 end
5050 end
5151end
Original file line number Diff line number Diff line change 2323 )
2424 }
2525
26- it { is_expected . not_to contain_postgresql__validate_db_connection ( 'validate puppetdb postgres (read) connection' ) }
26+ it { is_expected . not_to contain_postgresql_conn_validator ( 'validate puppetdb postgres (read) connection' ) }
2727 end
2828
2929 context 'with parameter tests' do
3030 let ( :params ) { { jdbc_ssl_properties : false } }
3131
3232 context 'with jdbc_ssl_properties set false' do
3333 it {
34- is_expected . to contain_postgresql__validate_db_connection ( 'validate puppetdb postgres (read) connection' )
34+ is_expected . to contain_postgresql_conn_validator ( 'validate puppetdb postgres (read) connection' )
3535 . with (
36- database_host : 'localhost' ,
37- database_port : '5432' ,
38- database_username : 'puppetdb' ,
39- database_password : 'puppetdb' ,
40- database_name : 'puppetdb' ,
36+ host : 'localhost' ,
37+ port : '5432' ,
38+ db_username : 'puppetdb' ,
39+ db_password : 'puppetdb' ,
40+ db_name : 'puppetdb' ,
4141 )
4242 }
4343 end
4444
4545 context 'without database password' do
4646 let ( :params ) { { database_password : nil } }
4747
48- it { is_expected . not_to contain_postgresql__validate_db_connection ( 'validate puppetdb postgres (read) connection' ) }
48+ it { is_expected . not_to contain_postgresql_conn_validator ( 'validate puppetdb postgres (read) connection' ) }
4949 end
5050 end
5151end
You can’t perform that action at this time.
0 commit comments