blob: 12c5b3a0d787490f946fe12ddbd2ca1cb92df134 [file] [log] [blame]
Giorgi Lekveishvili35982662024-04-05 13:05:40 +04001{{- if .Values.controller.testEnabled }}
2apiVersion: v1
3kind: ConfigMap
4metadata:
5 name: {{ template "jenkins.fullname" . }}-tests
6 namespace: {{ template "jenkins.namespace" . }}
7 annotations:
8 "helm.sh/hook": test
9data:
10 run.sh: |-
11 @test "Testing Jenkins UI is accessible" {
12 curl --retry 48 --retry-delay 10 {{ template "jenkins.fullname" . }}:{{ .Values.controller.servicePort }}{{ default "" .Values.controller.jenkinsUriPrefix }}/login
13 }
14{{- end }}