Skip to content
Snippets Groups Projects
Commit 1f52461c authored by HeJ's avatar HeJ
Browse files

GitLab CI: configure test_image_* jobs in prod mode w/ data (anhalter fixture)

parent a24fb1e5
No related branches found
No related tags found
No related merge requests found
......@@ -166,21 +166,26 @@ test_internals:
POSTGRES_PASSWORD: "kennwort"
DATABASE_URL: "postgis://app:kennwort@dbserver/fnord"
DJANGO_CREATE_ADMIN_PASSWORD: "Test1234"
DJANGO_MIGRATE: "yes"
SERVE_API: "no"
SERVE_BACKOFFICE: "no"
SERVE_FRONTEND: "no"
BASE_URL: http://hubapp:8000
ALLOWED_HOSTS: "127.0.0.1,hubapp"
DJANGO_DEBUG: "no"
services:
- name: postgis/postgis:15-3.3
alias: dbserver
- name: "$CI_REGISTRY_IMAGE:ci-$CI_PIPELINE_ID-test"
alias: hubapp
variables:
DJANGO_CREATE_ADMIN_PASSWORD: "Test1234"
DJANGO_DEBUG: "no"
DJANGO_LOAD_FIXTURE: "anhalter"
DJANGO_MIGRATE: "yes"
DJANGO_SECRET_KEY: "WeAreJustDoingCITestAndAreN0tInProduction"
PLAINUI_CONFERENCE: "017c0749-a2ea-4f86-92cd-e60b4508dd98"
before_script:
- pip3 install httpie requests "urllib3<2"
- echo "testing on: $BASE_URL"
- echo "testing on $BASE_URL"
- timeout 30 bash -c "while timeout -k 3 2 http --check-status GET ${BASE_URL}/.well-known/version; rc=\$?; [ \$rc = 124 -o \$rc = 502 ]; do sleep 1; done; if [ \$rc != 0 ]; then exit \$rc; fi"
- http --timeout 2.5 --check-status GET ${BASE_URL}/.well-known/health
only:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment