55 lines
1.7 KiB
YAML
55 lines
1.7 KiB
YAML
# services/bstein-dev-home/portal-onboarding-e2e-test-job.yaml
|
|
apiVersion: batch/v1
|
|
kind: Job
|
|
metadata:
|
|
name: portal-onboarding-e2e-test-2
|
|
namespace: bstein-dev-home
|
|
spec:
|
|
backoffLimit: 0
|
|
template:
|
|
spec:
|
|
restartPolicy: Never
|
|
containers:
|
|
- name: test
|
|
image: python:3.11-slim
|
|
env:
|
|
- name: PORTAL_BASE_URL
|
|
value: http://bstein-dev-home-backend.bstein-dev-home.svc.cluster.local
|
|
- name: PORTAL_DATABASE_URL
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: atlas-portal-db
|
|
key: PORTAL_DATABASE_URL
|
|
- name: KEYCLOAK_ADMIN_URL
|
|
value: http://keycloak.sso.svc.cluster.local
|
|
- name: KEYCLOAK_REALM
|
|
value: atlas
|
|
- name: KEYCLOAK_ADMIN_CLIENT_ID
|
|
value: bstein-dev-home-admin
|
|
- name: KEYCLOAK_ADMIN_CLIENT_SECRET
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: bstein-dev-home-keycloak-admin
|
|
key: client_secret
|
|
- name: E2E_USERNAME_PREFIX
|
|
value: e2e-portal
|
|
- name: E2E_DEADLINE_SECONDS
|
|
value: "600"
|
|
- name: E2E_POLL_SECONDS
|
|
value: "10"
|
|
command: ["/bin/sh", "-c"]
|
|
args:
|
|
- |
|
|
set -euo pipefail
|
|
python -m pip install --no-cache-dir 'psycopg[binary]==3.2.5'
|
|
python /scripts/test_portal_onboarding_flow.py
|
|
volumeMounts:
|
|
- name: tests
|
|
mountPath: /scripts
|
|
readOnly: true
|
|
volumes:
|
|
- name: tests
|
|
configMap:
|
|
name: portal-onboarding-e2e-tests
|
|
defaultMode: 0555
|