Skip to content

Commit

Permalink
Add checking to helm test
Browse files Browse the repository at this point in the history
  • Loading branch information
tomijange committed Sep 20, 2023
1 parent 5265a5a commit 3f24ebd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions templates/tests/httpbin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ spec:
- -c
- |
set -e
curl -X GET "http://{{ include "hawk-envoy-plugin.fullname" . }}-httpbin.{{ include "hawk-envoy-plugin.fullname" . }}-httpbin.svc:8000/headers"
curl -X GET "http://{{ include "hawk-envoy-plugin.fullname" . }}-httpbin.{{ include "hawk-envoy-plugin.fullname" . }}-httpbin.svc:8000/response-headers?freeform=should-be-in-hawk-service"
PARAM="should-be-in-hawk-service-${RANDOM}"
curl -X GET "http://{{ include "hawk-envoy-plugin.fullname" . }}-httpbin.{{ include "hawk-envoy-plugin.fullname" . }}-httpbin.svc:8000/response-headers?freeform=${PARAM}"
sleep 10
curl -X GET "{{ .Values.hawkEnvoyPlugin.hawkServiceApiUrl }}/endpoints/unmapped"
echo "Checking if ${PARAM} is in unmapped endpoints:"
curl -X GET "{{ .Values.hawkEnvoyPlugin.hawkServiceApiUrl }}/endpoints/unmapped" | grep "${PARAM}"
restartPolicy: Never
4 changes: 2 additions & 2 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ collector:
repository: ghcr.io/privacyengineering/collector-go
pullPolicy: Always
# Overrides the image tag whose default is the chart appVersion.
tag: "latest"
tag: "main"

service:
type: ClusterIP
Expand Down Expand Up @@ -74,7 +74,7 @@ consumer:
repository: ghcr.io/privacyengineering/consumer
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: "latest"
tag: "main"

service:
type: ClusterIP
Expand Down

0 comments on commit 3f24ebd

Please sign in to comment.