Skip to content

Commit 6534a2f

Browse files
committed
more Inspec tests
1 parent cc32672 commit 6534a2f

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
title 'Verify haproxy configuration'
2+
3+
describe file('/etc/haproxy/haproxy.cfg') do
4+
it { should be_file }
5+
its('owner') { should eq 'root' }
6+
its('group') { should eq 'root' }
7+
its('mode') { should cmp '0644' }
8+
end
9+
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
title 'Verify haproxy service'
2+
3+
describe service('haproxy') do
4+
it { should be_installed }
5+
it { should be_enabled }
6+
it { should be_running }
7+
end
8+
9+

0 commit comments

Comments
 (0)