Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions spec/unit/defines/server/config_entry_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
tmpfilename('postgresql_conf')
end

context "syntax check" do
let :pre_condition do
"class {'postgresql::server':}"
end
let :pre_condition do
"class {'postgresql::server':}"
end

context "syntax check" do
let(:params) { { :ensure => 'present'} }
it { is_expected.to contain_postgresql__server__config_entry('config_entry') }
end
Expand All @@ -41,7 +41,7 @@
:path => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
}
end
let(:params) {{ :ensure => 'present', :name => 'port', :value => '5432' }}
let(:params) {{ :ensure => 'present', :name => 'port_spec', :value => '5432' }}

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

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

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