You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
834 B
26 lines
834 B
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: {{ include "flowise.tests.fullname" . }}
|
|
namespace: {{ include "common.names.namespace" . | quote }}
|
|
labels:
|
|
{{- include "flowise.tests.labels" . | nindent 4 }}
|
|
{{- if .Values.commonLabels }}
|
|
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
|
|
{{- end }}
|
|
annotations:
|
|
helm.sh/hook: test
|
|
{{- if .Values.commonAnnotations }}
|
|
{{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
|
|
{{- end }}
|
|
data:
|
|
test_all.py: |
|
|
import requests
|
|
|
|
|
|
def test_service_connection():
|
|
url = "http://{{ include "flowise.fullname" . }}:{{ .Values.service.ports.http }}/"
|
|
|
|
response = requests.get(url)
|
|
|
|
assert response.status_code == 200
|
|
|