Support for plugin diffs + improved testing on minor upgrades + fixes

This commit is contained in:
Dale McDiarmid 2017-03-16 21:06:17 +00:00
parent 4e8af6ced5
commit 1bc817a378
17 changed files with 155 additions and 54 deletions

View file

@ -74,12 +74,13 @@ shared_examples 'package::init' do |es_version,plugins|
it { should be_directory }
it { should be_owned_by 'elasticsearch' }
end
describe command('curl -s localhost:9200/_nodes/plugins?pretty=true | grep '+plugin) do
#confirm plugins are installed and the correct version
describe command('curl -s localhost:9200/_nodes/plugins | grep \'"name":"'+plugin+'","version":"'+es_version+'"\'') do
its(:exit_status) { should eq 0 }
end
end
describe file('/etc/init.d/elasticsearch') do
it { should_not exist }
end