From 0aa42b67317f1bc197cbd372477255653e922475 Mon Sep 17 00:00:00 2001 From: Dale McDiarmid Date: Wed, 18 Jan 2017 11:20:23 +0000 Subject: [PATCH] Restructure multi test to overcome limitations with same role on same instance multiple times --- test/integration/multi.yml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/test/integration/multi.yml b/test/integration/multi.yml index c93b7e6..60e45f0 100644 --- a/test/integration/multi.yml +++ b/test/integration/multi.yml @@ -1,12 +1,20 @@ --- #Test ability to deploy multiple instances to a machine -- name: Elasticsearch Multi tests +- name: Elasticsearch Multi test - master on 9200 hosts: localhost - roles: - - { role: elasticsearch, es_api_port: 9200, es_instance_name: "master", es_data_dirs: ["/opt/elasticsearch/master"], es_config: { discovery.zen.ping.unicast.hosts: "localhost:9300", http.port: 9200, transport.tcp.port: 9300, node.data: false, node.master: true, bootstrap.memory_lock: true } } - - { role: elasticsearch, es_api_port: 9201, es_instance_name: "node1", es_data_dirs: "/opt/elasticsearch/data-1,/opt/elasticsearch/data-2", es_config: { discovery.zen.ping.unicast.hosts: "localhost:9300", http.port: 9201, transport.tcp.port: 9301, node.data: true, node.master: false } } vars: es_scripts: true es_templates: true es_heap_size: "1g" -#Plugins installed for this test are specified in .kitchen.yml under suite \ No newline at end of file + roles: + - { role: elasticsearch, es_api_port: 9200, es_instance_name: "master", es_data_dirs: ["/opt/elasticsearch/master"], es_config: { discovery.zen.ping.unicast.hosts: "localhost:9300", http.port: 9200, transport.tcp.port: 9300, node.data: false, node.master: true, bootstrap.memory_lock: true } } + +- name: Elasticsearch Multi test - data on 9201 + hosts: localhost + vars: + es_scripts: true + es_templates: true + es_heap_size: "1g" + roles: + - { role: elasticsearch, es_api_port: 9201, es_instance_name: "node1", es_data_dirs: "/opt/elasticsearch/data-1,/opt/elasticsearch/data-2", es_config: { discovery.zen.ping.unicast.hosts: "localhost:9300", http.port: 9201, transport.tcp.port: 9301, node.data: true, node.master: false } } +#Plugins installed for this test are specified in .kitchen.yml under suite