diff --git a/spec/helpers/acceptance/tests/removal_shared_examples.rb b/spec/helpers/acceptance/tests/removal_shared_examples.rb index 52e7ac6..518d691 100644 --- a/spec/helpers/acceptance/tests/removal_shared_examples.rb +++ b/spec/helpers/acceptance/tests/removal_shared_examples.rb @@ -1,30 +1,30 @@ shared_examples 'module removal' do |es_config| describe 'uninstalling' do let(:manifest) do <<-MANIFEST class { 'elasticsearch': ensure => 'absent', oss => #{v[:oss]} } MANIFEST end it 'should run successfully' do - apply_manifest manifest, :catch_failures => true + apply_manifest(manifest, :catch_failures => true, :debug => v[:puppet_debug]) end - it 'is idempotent' do - apply_manifest manifest, :catch_changes => true + describe package("elasticsearch#{v[:oss] ? '-oss' : ''}") do + it { should_not be_installed } end describe service('elasticsearch') do it { should_not be_enabled } it { should_not be_running } end unless es_config.empty? describe port(es_config['http.port']) do it 'closed' do should_not be_listening end end end end end