-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Expand file tree
/
Copy pathdocker-compose.override.unit_tests.yml
More file actions
49 lines (49 loc) · 1.98 KB
/
Copy pathdocker-compose.override.unit_tests.yml
File metadata and controls
49 lines (49 loc) · 1.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
---
services:
nginx: !reset
uwsgi:
build:
target: django-unittests
entrypoint: ['/wait-for-it.sh', '${DD_DATABASE_HOST:-postgres}:${DD_DATABASE_PORT:-5432}', '-t', '30', '--', '/app/docker/entrypoint-unit-tests-devDocker.sh']
volumes:
- '.:/app:z'
- "defectdojo_media_unit_tests:${DD_MEDIA_ROOT:-/app/media}"
depends_on: !override
postgres:
condition: service_started
environment:
PYTHONWARNINGS: error # We are strict about Warnings during testing
DD_DEBUG: 'True'
DD_TEST_DATABASE_NAME: ${DD_TEST_DATABASE_NAME:-test_defectdojo}
DD_DATABASE_NAME: ${DD_TEST_DATABASE_NAME:-test_defectdojo}
DD_DATABASE_ENGINE: ${DD_DATABASE_ENGINE:-django.db.backends.postgresql}
DD_DATABASE_HOST: ${DD_DATABASE_HOST:-postgres}
DD_DATABASE_PORT: ${DD_DATABASE_PORT:-5432}
DD_DATABASE_USER: ${DD_DATABASE_USER:-defectdojo}
DD_DATABASE_PASSWORD: ${DD_DATABASE_PASSWORD:-defectdojo}
DD_CELERY_BROKER_URL: 'sqla+sqlite:///dojo.celerydb.sqlite'
# No Redis/valkey in unit tests -> default django cache is LocMemCache.
DD_CACHE_URL: ''
# In-process singleton cache (dojo/caching.py) stays ON for deterministic
# assertNumQueries counts; reset per request (middleware) and per test.
DD_SETTINGS_CACHE_L1_TTL: '30'
DD_JIRA_EXTRA_ISSUE_TYPES: 'Vulnerability' # Shouldn't trigger a migration error
celerybeat: !reset
celeryworker: !reset
initializer: !reset
postgres:
ports:
- target: ${DD_DATABASE_PORT:-5432}
published: ${DD_DATABASE_PORT:-5432}
protocol: tcp
mode: host
environment:
POSTGRES_DB: ${DD_TEST_DATABASE_NAME:-test_defectdojo}
volumes:
- defectdojo_postgres_unit_tests:/var/lib/postgresql/data
valkey: !reset
"webhook.endpoint":
image: mccutchen/go-httpbin:2.18.3@sha256:3992f3763e9ce5a4307eae0a869a78b4df3931dc8feba74ab823dd2444af6a6b
volumes:
defectdojo_postgres_unit_tests: {}
defectdojo_media_unit_tests: {}