Additional tests + support for empty es_config + documentation
This commit is contained in:
parent
e98b74ab28
commit
b2997cc0bc
9 changed files with 101 additions and 63 deletions
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
#Test explicit setting of parameters and variables
|
||||
- name: Elasticsearch Package tests
|
||||
- name: Elasticsearch Config tests
|
||||
hosts: localhost
|
||||
roles:
|
||||
#expand to all available parameters
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
#Test ability to deploy multiple instances to a machine
|
||||
- name: Elasticsearch Config tests
|
||||
- name: Elasticsearch Multi tests
|
||||
hosts: localhost
|
||||
roles:
|
||||
- { role: elasticsearch, es_instance_name: "master", es_data_dir: "/opt/elasticsearch", es_heap_size: "1g", es_config: { "discovery.zen.ping.multicast.enabled": false, discovery.zen.ping.unicast.hosts: "localhost:9300", http.port: 9200, transport.tcp.port: 9300, node.data: false, node.master: true, bootstrap.mlockall: true, discovery.zen.ping.multicast.enabled: false } }
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
- name: wrapper playbook for kitchen testing "elasticsearch"
|
||||
hosts: localhost
|
||||
roles:
|
||||
- { role: elasticsearch, es_config: { "discovery.zen.ping.multicast.enabled": true }, es_instance_name: "node1" }
|
||||
- { role: elasticsearch, es_instance_name: "node1" }
|
||||
vars:
|
||||
es_use_repository: "true"
|
||||
es_plugins:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue