Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Commit

Permalink
Remove goss port test and instead do http calls on 0.0.0.0 and service
Browse files Browse the repository at this point in the history
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
goss-org/goss#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
  • Loading branch information
Crazybus committed Jun 20, 2019
1 parent b17957b commit 1292370
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
10 changes: 2 additions & 8 deletions elasticsearch/examples/default/test/goss.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,17 @@
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:
- 'green'
- '"number_of_nodes":3'
- '"number_of_data_nodes":3'

http://localhost:9200:
http://0.0.0.0:9200:
status: 200
timeout: 2000
body:
Expand Down
6 changes: 3 additions & 3 deletions elasticsearch/examples/security/test/goss.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
http:
https://localhost:9200/_cluster/health:
https://security-master:9200/_cluster/health:
status: 200
timeout: 2000
allow-insecure: true
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 1292370

Please sign in to comment.