Skip to content

Commit

Permalink
Add parameter absence acceptance test
Browse files Browse the repository at this point in the history
  • Loading branch information
wyardley committed Oct 27, 2023
1 parent ba728f5 commit a5027a4
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions spec/acceptance/parameter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,23 @@ class { 'rabbitmq':
end
end
end

context 'destroy parameter resource' do
it 'runs successfully' do
pp = <<-EOS
rabbitmq_parameter { 'documentumFed@fedhost':
ensure => absent,
}
EOS

apply_manifest(pp, catch_failures: true)
apply_manifest(pp, catch_changes: true)
end

it 'does not have the parameter' do
shell('rabbitmqctl list_parameters -q') do |r|
expect(r.stdout).not_to match(%r{documentumFed\s+})
end
end
end
end

0 comments on commit a5027a4

Please sign in to comment.