Pushing mongod and mongoexpress integration

This commit is contained in:
plm
2024-11-29 15:18:56 +01:00
parent ffff95b694
commit 98ef81fe2d
185 changed files with 25183 additions and 1 deletions

View File

@@ -0,0 +1,25 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "mongo-express.tests.fullname" . }}
labels:
{{- include "mongo-express.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 "mongo-express.fullname" . }}:{{ .Values.service.ports.http }}{{ .Values.siteBaseUrl }}"
response = requests.get(url)
assert response.status_code == 200