-
Notifications
You must be signed in to change notification settings - Fork 2
/
env.test
30 lines (25 loc) · 1.2 KB
/
env.test
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
# ====== Variables needed to run the services in testing mode ======
# The name of the Docker Compose project (stack) for testing.
# This is needed to avoid conflicts with other running instances of Datalad-Registry
# within the same host.
COMPOSE_PROJECT_NAME=dl-registry-test
# Ports of the services used for testing at host
BROKER_PORT_AT_HOST=35672
BROKER_MANAGEMENT_PORT_AT_HOST=45672
BACKEND_PORT_AT_HOST=36379
DB_PORT_AT_HOST=35432
# Variables related to the broker service
RABBITMQ_DEFAULT_USER=tester
RABBITMQ_DEFAULT_PASS=testpass
# Variables related to the db service
POSTGRES_DB=pgdb
POSTGRES_USER=tester
POSTGRES_PASSWORD=testpass
# ==================================================================
# ======== Variables needed to run the tests =======================
# (Make sure that user name and password characters do not need to be escaped for URL
# format or to escape them properly if they do)
CELERY_BROKER_URL=amqp://${RABBITMQ_DEFAULT_USER}:${RABBITMQ_DEFAULT_PASS}@localhost:35672
CELERY_RESULT_BACKEND=redis://localhost:36379
SQLALCHEMY_DATABASE_URI=postgresql+psycopg2://${POSTGRES_USER}:${POSTGRES_PASSWORD}@localhost:35432/pgdb
# ==================================================================