File tree 4 files changed +28
-28
lines changed
4 files changed +28
-28
lines changed Original file line number Diff line number Diff line change 10
10
$jdbc_ssl_properties = $puppetdb::params::jdbc_ssl_properties,
11
11
) inherits puppetdb::params {
12
12
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 ,
19
19
}
20
20
}
21
21
}
Original file line number Diff line number Diff line change 10
10
$jdbc_ssl_properties = $puppetdb::params::jdbc_ssl_properties,
11
11
) inherits puppetdb::params {
12
12
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 ,
19
19
}
20
20
}
21
21
}
Original file line number Diff line number Diff line change 23
23
)
24
24
}
25
25
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' ) }
27
27
end
28
28
29
29
context 'with parameter tests' do
30
30
let ( :params ) { { jdbc_ssl_properties : false } }
31
31
32
32
context 'with jdbc_ssl_properties set false' do
33
33
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' )
35
35
. 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' ,
41
41
)
42
42
}
43
43
end
44
44
45
45
context 'without database password' do
46
46
let ( :params ) { { database_password : nil } }
47
47
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' ) }
49
49
end
50
50
end
51
51
end
Original file line number Diff line number Diff line change 23
23
)
24
24
}
25
25
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' ) }
27
27
end
28
28
29
29
context 'with parameter tests' do
30
30
let ( :params ) { { jdbc_ssl_properties : false } }
31
31
32
32
context 'with jdbc_ssl_properties set false' do
33
33
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' )
35
35
. 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' ,
41
41
)
42
42
}
43
43
end
44
44
45
45
context 'without database password' do
46
46
let ( :params ) { { database_password : nil } }
47
47
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' ) }
49
49
end
50
50
end
51
51
end
You can’t perform that action at this time.
0 commit comments