From f719c26701c7faefa45985d15c1d2ee61a90490e Mon Sep 17 00:00:00 2001 From: Stavros kois Date: Mon, 7 Nov 2022 16:44:18 +0200 Subject: [PATCH] add test --- .../wg-easy/1.0.0/tests/deployment-check.yaml | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 test/wg-easy/1.0.0/tests/deployment-check.yaml diff --git a/test/wg-easy/1.0.0/tests/deployment-check.yaml b/test/wg-easy/1.0.0/tests/deployment-check.yaml new file mode 100644 index 0000000000..3a9557f96d --- /dev/null +++ b/test/wg-easy/1.0.0/tests/deployment-check.yaml @@ -0,0 +1,21 @@ +{{- $serviceName := (include "common.names.fullname" .) -}} +apiVersion: v1 +kind: Pod +metadata: + name: {{ .Release.Name }}-wgeasy + labels: + app: {{ .Release.Name }} + release: {{ .Release.Name }} + annotations: + "helm.sh/hook": test +spec: + containers: + - name: test-curl + image: alpine/curl + imagePullPolicy: "IfNotPresent" + command: + - /bin/sh + - -ec + - | + curl --connect-timeout 5 --max-time 10 --retry 5 --retry-delay 15 --retry-max-time 90 --retry-all-errors -ksf http://{{ $serviceName }}:{{ .Values.webUIPort }}/ + restartPolicy: Never