mirror of
https://github.com/aljazceru/ansible-elasticsearch.git
synced 2025-12-18 17:44:20 +01:00
Additional tests + support for empty es_config + documentation
This commit is contained in:
@@ -88,13 +88,13 @@ context "basic tests" do
|
||||
end
|
||||
|
||||
#test to make sure mlock was applied
|
||||
describe command('curl "localhost:9200/_nodes/process?pretty" | grep mlockall') do
|
||||
describe command('curl "localhost:9200/_nodes/localhost-master/process?pretty" | grep mlockall') do
|
||||
its(:stdout) { should match /\"mlockall\" : true/ }
|
||||
its(:exit_status) { should eq 0 }
|
||||
end
|
||||
|
||||
#test to make sure mlock was not applied
|
||||
describe command('curl "localhost:9201/_nodes/process?pretty" | grep mlockall') do
|
||||
describe command('curl "localhost:9201/_nodes/localhost-node1/process?pretty" | grep mlockall') do
|
||||
its(:stdout) { should match /\"mlockall\" : false/ }
|
||||
its(:exit_status) { should eq 0 }
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user