File tree Expand file tree Collapse file tree 4 files changed +22
-4
lines changed
support/acceptance/shared Expand file tree Collapse file tree 4 files changed +22
-4
lines changed Original file line number Diff line number Diff line change 10
10
line => '#PIDFile=/run/puppetlabs/puppetdb/puppetdb.pid',
11
11
match => '^PIDFile.*',
12
12
append_on_no_match => false,
13
- require => Package['puppetdb '],
13
+ require => Package['openvoxdb '],
14
14
notify => Service['puppetdb'],
15
15
}
16
16
}
Original file line number Diff line number Diff line change 63
63
grant : 'all' ,
64
64
port : params [ :database_port ] . to_i ,
65
65
encoding : 'UTF8' ,
66
- locale : 'en_US .UTF-8'
66
+ locale : 'C .UTF-8'
67
67
)
68
68
}
69
69
Original file line number Diff line number Diff line change 7
7
context "on #{ os } " do
8
8
let ( :facts ) { facts }
9
9
10
+ let ( :termini_package_name ) do
11
+ case facts [ :os ] [ 'family' ]
12
+ when 'Archlinux' , 'OpenBSD'
13
+ 'puppetdb-termini'
14
+ when 'Debian' , 'RedHat' , 'Suse'
15
+ 'openvoxdb-termini'
16
+ end
17
+ end
18
+
10
19
context 'when PuppetDB on remote server' do
11
20
context 'when using default values' do
12
21
it { is_expected . to compile . with_all_deps }
62
71
end
63
72
64
73
context 'when using default values' do
65
- it { is_expected . to contain_package ( 'puppetdb-termini' ) . with ( ensure : 'present' ) }
74
+ it { is_expected . to contain_package ( termini_package_name ) . with ( ensure : 'present' ) }
66
75
it { is_expected . to contain_puppetdb_conn_validator ( 'puppetdb_conn' ) . with ( test_url : '/pdb/meta/v1/version' ) }
67
76
end
68
77
Original file line number Diff line number Diff line change 14
14
end
15
15
end
16
16
17
+ let ( :package_name ) do
18
+ case facts [ :os ] [ 'family' ]
19
+ when 'Archlinux' , 'OpenBSD'
20
+ 'puppetdb'
21
+ when 'Debian' , 'RedHat' , 'Suse'
22
+ 'openvoxdb'
23
+ end
24
+ end
25
+
17
26
on_supported_os . each do |os , facts |
18
27
context "on #{ os } " do
19
28
let ( :facts ) { facts }
28
37
it { is_expected . to contain_class ( 'puppetdb::server::puppetdb' ) }
29
38
30
39
it {
31
- is_expected . to contain_package ( 'puppetdb' ) .
40
+ is_expected . to contain_package ( package_name ) .
32
41
that_notifies ( 'Service[puppetdb]' )
33
42
}
34
43
You can’t perform that action at this time.
0 commit comments