mirror of
https://github.com/aljazceru/ansible-elasticsearch.git
synced 2025-12-17 17:14:20 +01:00
Fixes for mlock all test
This commit is contained in:
@@ -34,7 +34,7 @@ shared_examples 'config::init' do |es_version,plugins|
|
||||
it { should contain 'node.master: true' }
|
||||
it { should contain 'cluster.name: custom-cluster' }
|
||||
it { should contain 'node.name: node1' }
|
||||
it { should contain 'bootstrap.memory_lock: false' }
|
||||
it { should contain 'bootstrap.memory_lock: true' }
|
||||
it { should contain 'discovery.zen.ping.unicast.hosts: localhost:9501' }
|
||||
it { should contain 'path.conf: /etc/elasticsearch/node1' }
|
||||
it { should contain 'path.data: /opt/elasticsearch/data-1/localhost-node1,/opt/elasticsearch/data-2/localhost-node1' }
|
||||
@@ -71,7 +71,7 @@ shared_examples 'config::init' do |es_version,plugins|
|
||||
|
||||
#test to make sure mlock was applied
|
||||
describe command('curl -s "localhost:9401/_nodes/process?pretty" | grep mlockall') do
|
||||
its(:stdout) { should match /false/ }
|
||||
its(:stdout) { should match /true/ }
|
||||
its(:exit_status) { should eq 0 }
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user