-
Notifications
You must be signed in to change notification settings - Fork 705
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add chart tests * Use frontend image for the tests * Change YAML syntax * Set test image in values.yaml * bump chart to 0.2.0
- Loading branch information
1 parent
047ab65
commit 16cb329
Showing
5 changed files
with
68 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: "{{ .Release.Name }}-chartsvc-test" | ||
annotations: | ||
"helm.sh/hook": test-success | ||
spec: | ||
containers: | ||
- name: {{ .Release.Name }}-chartsvc-test | ||
image: {{ .Values.testImage.repository }}:{{ .Values.testImage.tag }} | ||
env: | ||
- name: CHARTSVC_HOST | ||
value: {{ template "kubeapps.chartsvc.fullname" . }}.{{ .Release.Namespace }} | ||
- name: CHARTSVC_PORT | ||
value: "{{ .Values.chartsvc.service.port }}" | ||
command: | ||
- sh | ||
- -c | ||
- curl $CHARTSVC_HOST:$CHARTSVC_PORT/v1/charts | grep wordpress | ||
restartPolicy: Never |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: "{{ .Release.Name }}-dashboard-test" | ||
annotations: | ||
"helm.sh/hook": test-success | ||
spec: | ||
containers: | ||
- name: {{ .Release.Name }}-dashboard-test | ||
image: {{ .Values.testImage.repository }}:{{ .Values.testImage.tag }} | ||
env: | ||
- name: DASHBOARD_HOST | ||
value: {{ template "kubeapps.fullname" . }}.{{ .Release.Namespace }} | ||
command: | ||
- sh | ||
- -c | ||
- curl $DASHBOARD_HOST | grep 'You need to enable JavaScript to run this app' | ||
restartPolicy: Never |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: "{{ .Release.Name }}-tiller-proxy-test" | ||
annotations: | ||
"helm.sh/hook": test-success | ||
spec: | ||
containers: | ||
- name: {{ .Release.Name }}-tiller-proxy-test | ||
image: {{ .Values.testImage.repository }}:{{ .Values.testImage.tag }} | ||
env: | ||
- name: TILLER_PROXY_HOST | ||
value: {{ template "kubeapps.tiller-proxy.fullname" . }}.{{ .Release.Namespace }} | ||
- name: TILLER_PROXY_PORT | ||
value: "{{ .Values.tillerProxy.service.port }}" | ||
- name: KUBEAPPS_RELEASE | ||
value: {{ .Release.Name }} | ||
command: | ||
- sh | ||
- -c | ||
- "curl -ik -H \"Authorization: Bearer $(cat /var/run/secrets/kubernetes.io/serviceaccount/token)\" $TILLER_PROXY_HOST:$TILLER_PROXY_PORT/v1/releases | grep $KUBEAPPS_RELEASE" | ||
restartPolicy: Never |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters