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

Commit

Permalink
Merge pull request #76 from Conky5/seven-one
Browse files Browse the repository at this point in the history
Add 7.1.0 snapshot testing
  • Loading branch information
Crazybus authored Mar 18, 2019
2 parents e3c226b + cd46500 commit c26db18
Show file tree
Hide file tree
Showing 6 changed files with 64 additions and 0 deletions.
15 changes: 15 additions & 0 deletions elasticsearch/examples/7.1.x/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
default: test
include ../../../helpers/examples.mk

RELEASE := helm-es-seven-one

install:
helm upgrade --wait --timeout=600 --install $(RELEASE) --values ./values.yaml ../../ ; \

restart:
helm upgrade --set terminationGracePeriod=121 --wait --timeout=600 --install $(RELEASE) --values ./values.yaml ../../ ; \

test: install goss

purge:
helm del --purge $(RELEASE)
17 changes: 17 additions & 0 deletions elasticsearch/examples/7.1.x/test/goss.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
http:
http://localhost:9200/_cluster/health:
status: 200
timeout: 2000
body:
- 'green'
- '"number_of_nodes":3'
- '"number_of_data_nodes":3'

http://localhost:9200:
status: 200
timeout: 2000
body:
- '"number" : "7.1.0-SNAPSHOT"'
- '"cluster_name" : "seven-one"'
- '"name" : "seven-one-master-0"'
- 'You Know, for Search'
6 changes: 6 additions & 0 deletions elasticsearch/examples/7.1.x/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---

clusterName: "seven-one"
masterService: "seven-one-master"
imageTag: "7.1.0-SNAPSHOT"
esMajorVersion: 7
12 changes: 12 additions & 0 deletions kibana/examples/7.1.x/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
default: test
include ../../../helpers/examples.mk

RELEASE := helm-kibana-seven-one

install:
helm upgrade --wait --timeout=600 --install --values ./values.yml $(RELEASE) ../../ ; \

purge:
helm del --purge $(RELEASE)

test: install goss
10 changes: 10 additions & 0 deletions kibana/examples/7.1.x/test/goss.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
http:
http://localhost:5601/api/status:
status: 200
timeout: 2000
body:
- '"number":"7.1.0"'

http://localhost:5601/app/kibana:
status: 200
timeout: 2000
4 changes: 4 additions & 0 deletions kibana/examples/7.1.x/values.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---

imageTag: 7.1.0-SNAPSHOT
elasticsearchHosts: "http://seven-one-master:9200"

0 comments on commit c26db18

Please sign in to comment.