2015-07-09 16:29:06 +02:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
|
|
context "basic tests" do
|
|
|
|
|
|
|
|
|
|
describe user('elasticsearch') do
|
|
|
|
|
it { should exist }
|
|
|
|
|
end
|
|
|
|
|
|
2015-11-25 15:28:09 +00:00
|
|
|
describe service('node1_elasticsearch') do
|
2015-07-09 16:29:06 +02:00
|
|
|
it { should be_running }
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
describe package('elasticsearch') do
|
|
|
|
|
it { should be_installed }
|
|
|
|
|
end
|
|
|
|
|
|
2015-11-25 15:28:09 +00:00
|
|
|
describe file('/etc/elasticsearch/node1/elasticsearch.yml') do
|
2015-07-09 16:29:06 +02:00
|
|
|
it { should be_file }
|
|
|
|
|
end
|
|
|
|
|
|
2015-11-25 15:28:09 +00:00
|
|
|
describe 'Node listening' do
|
|
|
|
|
it 'listening in port 9200' do
|
|
|
|
|
expect(port 9200).to be_listening
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
2015-07-09 16:29:06 +02:00
|
|
|
end
|
|
|
|
|
|