From 1292370505e18ff286c230a912089c3c62ffe4e8 Mon Sep 17 00:00:00 2001 From: Michael Russell Date: Wed, 19 Jun 2019 08:17:12 +0200 Subject: [PATCH] Remove goss port test and instead do http calls on 0.0.0.0 and service With the default install on GKE 1.13 the default bound port is now ipv4 instead of ipv6. There is an open issue in goss https://github.com/aelsabbahy/goss/issues/149 to allow testing for situations like this where it is listening on both ports. However the only important thing to test is to make sure that this this port is listening publicly and that the service actually works. Also switched the security example to test against the service to make sure we don't hit the same kibana bug as in #156 --- elasticsearch/examples/default/test/goss.yaml | 10 ++-------- elasticsearch/examples/security/test/goss.yaml | 6 +++--- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/elasticsearch/examples/default/test/goss.yaml b/elasticsearch/examples/default/test/goss.yaml index 5d1613971..353212719 100644 --- a/elasticsearch/examples/default/test/goss.yaml +++ b/elasticsearch/examples/default/test/goss.yaml @@ -1,15 +1,9 @@ -port: - tcp6:9200: - listening: true - ip: - - '::' - kernel-param: vm.max_map_count: value: '262144' http: - http://localhost:9200/_cluster/health: + http://elasticsearch-master:9200/_cluster/health: status: 200 timeout: 2000 body: @@ -17,7 +11,7 @@ http: - '"number_of_nodes":3' - '"number_of_data_nodes":3' - http://localhost:9200: + http://0.0.0.0:9200: status: 200 timeout: 2000 body: diff --git a/elasticsearch/examples/security/test/goss.yaml b/elasticsearch/examples/security/test/goss.yaml index a2777635c..9bd0ed6c7 100644 --- a/elasticsearch/examples/security/test/goss.yaml +++ b/elasticsearch/examples/security/test/goss.yaml @@ -1,5 +1,5 @@ http: - https://localhost:9200/_cluster/health: + https://security-master:9200/_cluster/health: status: 200 timeout: 2000 allow-insecure: true @@ -10,7 +10,7 @@ http: - '"number_of_nodes":3' - '"number_of_data_nodes":3' - https://localhost:9200/: + https://0.0.0.0:9200/: status: 200 timeout: 2000 allow-insecure: true @@ -21,7 +21,7 @@ http: - '"name" : "security-master-0"' - 'You Know, for Search' - https://localhost:9200/_xpack/license: + https://0.0.0.0:9200/_xpack/license: status: 200 timeout: 2000 allow-insecure: true