mirror of
https://github.com/aljazceru/ansible-elasticsearch.git
synced 2025-12-19 10:04:18 +01:00
Correct handling of map in template
This commit is contained in:
@@ -14,20 +14,25 @@ context "basic tests" do
|
||||
it { should be_installed }
|
||||
end
|
||||
|
||||
describe file('/etc/elasticsearch/node1_elasticsearch/elasticsearch.yml') do
|
||||
describe file('/etc/elasticsearch/node1/elasticsearch.yml') do
|
||||
it { should be_file }
|
||||
end
|
||||
|
||||
#test configuration parameters have been set - test all appropriately set in config file
|
||||
describe file('/etc/elasticsearch/node1_elasticsearch/elasticsearch.yml') do
|
||||
describe file('/etc/elasticsearch/node1/elasticsearch.yml') do
|
||||
it { should contain 'http.port: 9201' }
|
||||
it { should contain 'transport.tcp.port: 9301' }
|
||||
it { should contain 'node.data: false' }
|
||||
it { should contain 'node.master: true' }
|
||||
it { should contain 'discovery.zen.ping.multicast.enabled: false' }
|
||||
it { should contain 'cluster.name: custom-cluster' }
|
||||
it { should contain 'node.name: node1_localhost' }
|
||||
it { should contain 'node.name: node1' }
|
||||
it { should contain 'bootstrap.mlockall: true' }
|
||||
it { should contain 'discovery.zen.ping.unicast.hosts: localhost:9301' }
|
||||
it { should contain 'path.conf: /etc/elasticsearch/node1' }
|
||||
it { should contain 'path.data: /var/lib/elasticsearch/localhost-node1' }
|
||||
it { should contain 'path.work: /tmp/elasticsearch/localhost-node1' }
|
||||
it { should contain 'path.logs: /var/log/elasticsearch/localhost-node1' }
|
||||
end
|
||||
|
||||
#test we started on the correct port was used
|
||||
|
||||
Reference in New Issue
Block a user