Skip to content
This repository was archived by the owner on Jun 24, 2022. It is now read-only.

Commit

Permalink
Fix path.data content test for when there are multiple paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Crazybus committed Jun 19, 2018
1 parent e1cfb90 commit 95c0bff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/integration/helpers/serverspec/shared_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@
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
3 changes: 2 additions & 1 deletion test/integration/multi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 95c0bff

Please sign in to comment.