apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "centrifugo.fullname" . }}-tests
  namespace: {{ .Release.Namespace }}
  labels:
    {{- include "centrifugo.labels" . | nindent 4 }}
data:
  run.sh: |-
    @test "Testing if centrifugo ui is accessible" {
      curl --retry 48 --retry-delay 10 {{ include "centrifugo.fullname" . }}.{{ .Release.Namespace }}.svc.cluster.local:{{ .Values.service.port }}
    }
