Fix path.data content test for when there are multiple paths
This commit is contained in:
parent
e1cfb90f5d
commit
95c0bff835
2 changed files with 3 additions and 2 deletions
|
|
@ -164,7 +164,7 @@ shared_examples 'shared::init' do |vars|
|
|||
else
|
||||
it { should contain "path.conf: /etc/elasticsearch/#{vars['es_instance_name']}" }
|
||||
end
|
||||
its(:content) { should match "path.data: /var/lib/elasticsearch/localhost-#{vars['es_instance_name']}" }
|
||||
its(:content) { should match "path.data: #{vars['data_dirs'].join(',')}" }
|
||||
its(:content) { should match "path.logs: /var/log/elasticsearch/localhost-#{vars['es_instance_name']}" }
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -8,7 +8,8 @@
|
|||
- elasticsearch
|
||||
vars:
|
||||
es_instance_name: "master"
|
||||
es_data_dirs: ["/opt/elasticsearch/master"]
|
||||
es_data_dirs:
|
||||
- "/opt/elasticsearch/master"
|
||||
es_config:
|
||||
discovery.zen.ping.unicast.hosts: "localhost:9300"
|
||||
http.port: 9200
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue