2015-07-09 16:29:06 +02:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
|
|
context "basic tests" do
|
|
|
|
|
|
|
|
|
|
describe user('elasticsearch') do
|
|
|
|
|
it { should exist }
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
describe service('elasticsearch') do
|
|
|
|
|
it { should be_running }
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
describe package('elasticsearch') do
|
|
|
|
|
it { should be_installed }
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
describe file('/etc/elasticsearch/elasticsearch.yml') do
|
|
|
|
|
it { should be_file }
|
|
|
|
|
end
|
|
|
|
|
|
2015-10-19 12:44:09 +02:00
|
|
|
describe 'plugin' do
|
|
|
|
|
|
|
|
|
|
it 'should be reported as existing', :retry => 3, :retry_wait => 10 do
|
|
|
|
|
command = command('curl localhost:9200/_nodes/?plugin | grep kopf')
|
|
|
|
|
expect(command.stdout).to match(/kopf/)
|
|
|
|
|
expect(command.exit_status).to eq(0)
|
|
|
|
|
end
|
|
|
|
|
|
2015-07-09 16:29:06 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|