mirror of
https://github.com/aljazceru/ansible-elasticsearch.git
synced 2025-12-18 01:24:20 +01:00
Tests for templates
This commit is contained in:
@@ -16,10 +16,12 @@ context "basic tests" do
|
||||
|
||||
describe file('/etc/elasticsearch/node1/elasticsearch.yml') do
|
||||
it { should be_file }
|
||||
it { should be_owned_by 'elasticsearch' }
|
||||
end
|
||||
|
||||
describe file('/etc/elasticsearch/node1/logging.yml') do
|
||||
it { should be_file }
|
||||
it { should be_owned_by 'elasticsearch' }
|
||||
end
|
||||
|
||||
describe file('/etc/elasticsearch/node1/elasticsearch.yml') do
|
||||
@@ -38,13 +40,11 @@ context "basic tests" do
|
||||
end
|
||||
|
||||
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
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user