Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat] - Add Helm tests to calibration #216

Open
wants to merge 2 commits into
base: calibration
Choose a base branch
from
Open
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
1 change: 1 addition & 0 deletions buildspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,4 @@ phases:
- helm lint
- helm template cid-checker-$NETWORK . -f env-values/$NETWORK.yaml
- helm upgrade --install cid-checker-$NETWORK . -f env-values/$NETWORK.yaml
- helm test cid-checker-$NETWORK
20 changes: 20 additions & 0 deletions helm/templates/tests/test-backend.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: v1
kind: Pod
metadata:
name: "{{ .Release.Name }}-test-backend"
annotations:
"helm.sh/hook": test
spec:
containers:
- name: test-backend
image: curlimages/curl
command: ['curl']
args:
- --fail
- --write-out
- '%{http_code}'
- --silent
- --output
- /dev/null
- 'http://{{ include "CID.fullname" . }}-backend-service:3000/api/version'
restartPolicy: Never
20 changes: 20 additions & 0 deletions helm/templates/tests/test-frontend.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: v1
kind: Pod
metadata:
name: "{{ .Release.Name }}-test-frontend"
annotations:
"helm.sh/hook": test
spec:
containers:
- name: test-frontend
image: curlimages/curl
command: ['curl']
args:
- --fail
- --write-out
- '%{http_code}'
- --silent
- --output
- /dev/null
- 'http://{{ include "CID.fullname" . }}-frontend-service:80/'
restartPolicy: Never
20 changes: 20 additions & 0 deletions helm/templates/tests/test-mongo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: v1
kind: Pod
metadata:
name: "{{ .Release.Name }}-test-mongo"
annotations:
"helm.sh/hook": test
spec:
containers:
- name: test-mongo
image: curlimages/curl
command: ['curl']
args:
- --fail
- --write-out
- '%{http_code}'
- --silent
- --output
- /dev/null
- 'http://{{ include "CID.fullname" . }}-backend-service:3000/api/deals/stats'
restartPolicy: Never