File tree Expand file tree Collapse file tree 5 files changed +41
-23
lines changed Expand file tree Collapse file tree 5 files changed +41
-23
lines changed Original file line number Diff line number Diff line change
1
+ control 'Postgres command' do
2
+ title 'should match desired lines'
3
+
4
+ describe command ( %q{su - postgres -c 'psql -qtc "\l+ db2"'} ) do
5
+ its ( :stdout ) { should match ( /db2.*remoteUser.*UTF8.*en_US\. UTF-8.*en_US\. UTF-8.*my_space/ ) }
6
+ end
7
+ end
Original file line number Diff line number Diff line change
1
+ control 'Postgres configuration' do
2
+ title 'should include the directory'
3
+
4
+ describe file ( '/srv/my_tablespace' ) do
5
+ it { should be_directory }
6
+ it { should be_owned_by 'postgres' }
7
+ it { should be_grouped_into 'postgres' }
8
+ its ( 'mode' ) { should cmp '0700' }
9
+ end
10
+ end
Original file line number Diff line number Diff line change
1
+ control 'Postgres service' do
2
+ impact 0.5
3
+ title 'should be running and enabled'
4
+
5
+ describe service ( 'postgresql' ) do
6
+ it { should be_enabled }
7
+ it { should be_running }
8
+ end
9
+
10
+ describe port ( 5432 ) do
11
+ it { should be_listening }
12
+ end
13
+ end
Original file line number Diff line number Diff line change
1
+ name : postgres
2
+ title : Postgres Formula
3
+ maintainer : Your Name
4
+ license : Apache-2.0
5
+ summary : Verify that the postgres formula is setup and configured correctly
6
+ supports :
7
+ - os-name : debian
8
+ - os-name : ubuntu
9
+ - os-name : centos
10
+ - os-name : fedora
11
+ - os-name : opensuse
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments