1 require 'spec_helper_acceptance'
3 # These tests ensure that postgres can change itself to an alternative port
5 describe 'postgresql::server', :unless => UNSUPPORTED_PLATFORMS.include?(fact('osfamily')) do
6 it 'on an alternative port' do
8 class { 'postgresql::server': port => '55433' }
11 apply_manifest(pp, :catch_failures => true)
12 apply_manifest(pp, :catch_changes => true)
15 describe port(55433) do
16 it { is_expected.to be_listening }
19 it 'can connect with psql' do
20 psql('-p 55433 --command="\l" postgres', 'postgres') do |r|
21 expect(r.stdout).to match(/List of databases/)