test-config.yaml 475 B

1234567891011121314
  1. {{- if .Values.controller.testEnabled }}
  2. apiVersion: v1
  3. kind: ConfigMap
  4. metadata:
  5. name: {{ template "jenkins.fullname" . }}-tests
  6. namespace: {{ template "jenkins.namespace" . }}
  7. annotations:
  8. "helm.sh/hook": test
  9. data:
  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 }}