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

Always run tests against localhost or the service endpoint #181

Merged
merged 1 commit into from
Jun 24, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Always run tests against localhost or the service endpoint
This makes sure that:

1. The tests work in ipv4 and ipv6 environments
2. Testing the service endpoint makes sure that the listening address is
properly configured to allow traffic

Addresses: #169 (review)
  • Loading branch information
Crazybus committed Jun 21, 2019
commit 9dd7bbe2d6bfb113bd63d313063f05c3a024f4dd
2 changes: 1 addition & 1 deletion elasticsearch/examples/default/test/goss.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ http:
- '"number_of_nodes":3'
- '"number_of_data_nodes":3'

http://0.0.0.0:9200:
http://localhost:9200:
status: 200
timeout: 2000
body:
Expand Down
4 changes: 2 additions & 2 deletions elasticsearch/examples/security/test/goss.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ http:
- '"number_of_nodes":3'
- '"number_of_data_nodes":3'

https://0.0.0.0:9200/:
https://localhost:9200/:
status: 200
timeout: 2000
allow-insecure: true
Expand All @@ -21,7 +21,7 @@ http:
- '"name" : "security-master-0"'
- 'You Know, for Search'

https://0.0.0.0:9200/_xpack/license:
https://localhost:9200/_xpack/license:
status: 200
timeout: 2000
allow-insecure: true
Expand Down
4 changes: 2 additions & 2 deletions kibana/examples/default/test/goss.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
http:
http://0.0.0.0:5601/api/status:
http://localhost:5601/api/status:
status: 200
timeout: 2000
body:
- '"number":"7.1.1"'

http://0.0.0.0:5601/app/kibana:
http://localhost:5601/app/kibana:
status: 200
timeout: 2000

Expand Down
9 changes: 8 additions & 1 deletion kibana/examples/security/test/goss.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
http:
https://0.0.0.0:5601/app/kibana:
https://localhost:5601/app/kibana:
status: 200
timeout: 2000
allow-insecure: true
username: '{{ .Env.ELASTICSEARCH_USERNAME }}'
password: '{{ .Env.ELASTICSEARCH_PASSWORD }}'

https://helm-kibana-security-kibana:5601/app/kibana:
status: 200
timeout: 2000
allow-insecure: true
Expand Down