1 require 'spec_helper_acceptance'
3 # These tests are designed to ensure that the module, when ran with defaults,
4 # sets up everything correctly and allows us to connect to Postgres.
5 describe 'postgresql::server', :unless => UNSUPPORTED_PLATFORMS.include?(fact('osfamily')) do
8 class { 'postgresql::server': }
11 apply_manifest(pp, :catch_failures => true)
12 apply_manifest(pp, :catch_changes => true)
15 describe port(5432) do
16 it { is_expected.to be_listening }
19 it 'can connect with psql' do
20 psql('--command="\l" postgres', 'postgres') do |r|
21 expect(r.stdout).to match(/List of databases/)