|
19 | 19 | tmpfilename('postgresql_conf')
|
20 | 20 | end
|
21 | 21 |
|
22 |
| - context "syntax check" do |
23 |
| - let :pre_condition do |
24 |
| - "class {'postgresql::server':}" |
25 |
| - end |
| 22 | + let :pre_condition do |
| 23 | + "class {'postgresql::server':}" |
| 24 | + end |
26 | 25 |
|
| 26 | + context "syntax check" do |
27 | 27 | let(:params) { { :ensure => 'present'} }
|
28 | 28 | it { is_expected.to contain_postgresql__server__config_entry('config_entry') }
|
29 | 29 | end
|
|
41 | 41 | :path => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
|
42 | 42 | }
|
43 | 43 | end
|
44 |
| - let(:params) {{ :ensure => 'present', :name => 'port', :value => '5432' }} |
| 44 | + let(:params) {{ :ensure => 'present', :name => 'port_spec', :value => '5432' }} |
45 | 45 |
|
46 | 46 | it 'stops postgresql and changes the port' do
|
47 | 47 | is_expected.to contain_exec('postgresql_stop')
|
|
60 | 60 | :path => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
|
61 | 61 | }
|
62 | 62 | end
|
63 |
| - let(:params) {{ :ensure => 'present', :name => 'port', :value => '5432' }} |
| 63 | + let(:params) {{ :ensure => 'present', :name => 'port_spec', :value => '5432' }} |
64 | 64 |
|
65 | 65 | it 'stops postgresql and changes the port' do
|
66 | 66 | is_expected.to contain_file('systemd-port-override')
|
|
79 | 79 | :path => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
|
80 | 80 | }
|
81 | 81 | end
|
82 |
| - let(:params) {{ :ensure => 'present', :name => 'port', :value => '5432' }} |
| 82 | + let(:params) {{ :ensure => 'present', :name => 'port_spec', :value => '5432' }} |
83 | 83 |
|
84 | 84 | it 'stops postgresql and changes the port' do
|
85 | 85 | is_expected.to contain_file('systemd-port-override')
|
|
0 commit comments