Skip to content

Commit 2150919

Browse files
author
Filip Krahl
committed
use process ressource instead of command
Signed-off-by: Filip Krahl <[email protected]>
1 parent aa7996f commit 2150919

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

controls/postgres_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,12 @@
9999
desc 'Only one postgresql database instance must be running on an operating system instance (both physical HW or virtualized).'
100100
case os[:name]
101101
when 'redhat', 'centos', 'oracle', 'fedora'
102-
describe command('ps aux | awk /\'bin\/postmaster\'/ | wc -l') do
103-
its('stdout') { should include '1' }
102+
describe processes('bin/postmaster') do
103+
its('entries.length') { should eq 1 }
104104
end
105105
when 'debian', 'ubuntu'
106-
describe command('ps aux | awk /\'bin\/postgres\'/ | wc -l') do
107-
its('stdout') { should include '1' }
106+
describe processes('bin/postgres') do
107+
its('entries.length') { should eq 1 }
108108
end
109109
end
110110
end

0 commit comments

Comments
 (0)