Revision 8933401b
Added by Eric Helms about 3 years ago
spec/acceptance/qpid_spec.rb | ||
---|---|---|
require 'spec_helper_acceptance'
|
||
|
||
describe 'qpid' do
|
||
describe 'qpid', :order => :defined do
|
||
context 'with default parameters' do
|
||
let(:pp) do
|
||
<<-PUPPET
|
||
... | ... | |
describe package('qpid-tools') do
|
||
it { is_expected.to be_installed }
|
||
end
|
||
|
||
describe file('/var/lib/qpidd') do
|
||
it { is_expected.to be_directory }
|
||
end
|
||
end
|
||
|
||
context 'with ensure absent' do
|
||
... | ... | |
describe package('qpid-tools') do
|
||
it { is_expected.not_to be_installed }
|
||
end
|
||
|
||
describe file('/var/lib/qpidd') do
|
||
it { is_expected.not_to exist }
|
||
end
|
||
end
|
||
end
|
Also available in: Unified diff
Refs #32037: Manage /var/lib/qpidd
When the qpidd service starts it creates a directory /var/lib/qpidd/.qpidd
If the qpid is then ensured to be absent, removing the qpidd user
and then re-enabled this directory will have the wrong user id set on it
and get permission denied when trying to start the service.