GitLab upgraded to 13.7.4-ee.0 - changelog: https://gitlab.com/gitlab-org/gitlab/blob/master/CHANGELOG-EE.md

default_spec.rb 769 Bytes
Newer Older
1
# The Inspec reference, with examples and extensive documentation, can be
2
# found at https://inspec.io/docs/reference/resources/
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19

describe package('rabbitmq-server') do
  it { should be_installed }
end

describe service('rabbitmq-server') do
  it { should be_running }
end

describe command('HOSTNAME=$(hostname) rabbitmq-diagnostics ping') do
  its(:exit_status) { should eq 0 }
end
describe file('/etc/systemd/system/rabbitmq-server.service.d/limits.conf') do
  it { should be_file }
  its('owner') { should eq 'root' }
  its('group') { should eq 'root' }

Michael Klishin's avatar
Michael Klishin committed
20
  its('content') { should match(/LimitNOFILE=54000/) }
21 22 23 24 25 26 27
end

describe file('/etc/rabbitmq/rabbitmq.config') do
  it { should be_file }
  its('owner') { should eq 'root' }
  its('group') { should eq 'root' }
end