Skip to content

Commit df77fe4

Browse files
committed
Include postgresql::server class for specs
1 parent 81a85d8 commit df77fe4

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

spec/unit/defines/server/config_entry_spec.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@
1919
tmpfilename('postgresql_conf')
2020
end
2121

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
2625

26+
context "syntax check" do
2727
let(:params) { { :ensure => 'present'} }
2828
it { is_expected.to contain_postgresql__server__config_entry('config_entry') }
2929
end
@@ -41,7 +41,7 @@
4141
:path => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
4242
}
4343
end
44-
let(:params) {{ :ensure => 'present', :name => 'port', :value => '5432' }}
44+
let(:params) {{ :ensure => 'present', :name => 'port_spec', :value => '5432' }}
4545

4646
it 'stops postgresql and changes the port' do
4747
is_expected.to contain_exec('postgresql_stop')
@@ -60,7 +60,7 @@
6060
:path => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
6161
}
6262
end
63-
let(:params) {{ :ensure => 'present', :name => 'port', :value => '5432' }}
63+
let(:params) {{ :ensure => 'present', :name => 'port_spec', :value => '5432' }}
6464

6565
it 'stops postgresql and changes the port' do
6666
is_expected.to contain_file('systemd-port-override')
@@ -79,7 +79,7 @@
7979
:path => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
8080
}
8181
end
82-
let(:params) {{ :ensure => 'present', :name => 'port', :value => '5432' }}
82+
let(:params) {{ :ensure => 'present', :name => 'port_spec', :value => '5432' }}
8383

8484
it 'stops postgresql and changes the port' do
8585
is_expected.to contain_file('systemd-port-override')

0 commit comments

Comments
 (0)