We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a00eab6 commit 7828cf3Copy full SHA for 7828cf3
spec/acceptance/alternative_pgdata_spec.rb
@@ -0,0 +1,24 @@
1
+require 'spec_helper_acceptance'
2
+
3
+# These tests ensure that postgres can change itself to an alternative pgdata
4
+# location properly.
5
+describe 'postgres::server', :unless => UNSUPPORTED_PLATFORMS.include?(fact('osfamily')) do
6
+ it 'on an alternative pgdata location' do
7
+ pp = <<-EOS
8
+ class { 'postgresql::server': data_directory => '/var/pgsql' }
9
+ EOS
10
11
+ apply_manifest(pp, :catch_failures => true)
12
+ apply_manifest(pp, :catch_changes => true)
13
+ end
14
15
+ it 'can connect with psql' do
16
+ psql('-D /var/pgsql --command="\l" postgres', 'postgres') do |r|
17
+ expect(r.stdout).to match(/List of databases/)
18
19
20
21
+end
22
23
24
0 commit comments