From 3f24ebdd7a0a43c6b5d3adc8acbc63eb4bf3b484 Mon Sep 17 00:00:00 2001 From: Thomas Janke Date: Wed, 20 Sep 2023 12:54:49 +0200 Subject: [PATCH] Add checking to helm test --- templates/tests/httpbin.yaml | 8 +++++--- values.yaml | 4 ++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/templates/tests/httpbin.yaml b/templates/tests/httpbin.yaml index d110429..bf07429 100644 --- a/templates/tests/httpbin.yaml +++ b/templates/tests/httpbin.yaml @@ -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 \ No newline at end of file diff --git a/values.yaml b/values.yaml index 22acced..29aa255 100644 --- a/values.yaml +++ b/values.yaml @@ -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 @@ -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