Skip to content

Commit a285e11

Browse files
Rob Hudsonrobhudson
authored andcommitted
Update integration tests to use recent basket image
The big change since the last image was basket switched to using rq for a task queue.
1 parent b36f7e7 commit a285e11

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

docker-compose.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ services:
4545
- 8080:8080
4646
basket:
4747
profiles: [integration-test]
48-
image: mozmeao/basket:2023-04-24
48+
image: mozmeao/basket:2024-10-21
4949
env_file:
5050
- ./tests/integration/basket.env
5151
command:
@@ -66,7 +66,7 @@ services:
6666
retries: 10
6767
basket-worker:
6868
profiles: [integration-test]
69-
image: mozmeao/basket:2023-04-24
69+
image: mozmeao/basket:2024-10-21
7070
env_file:
7171
- ./tests/integration/basket.env
7272
command:
@@ -79,11 +79,10 @@ services:
7979
web:
8080
condition: service_healthy
8181
healthcheck:
82-
test: celery -b redis://redis:6379 -A basket.news inspect ping
82+
test: rq info -R default | grep -q "queues"
8383
interval: 3s
84-
# This healthcheck takes forever to start/complete!?
85-
timeout: 60s
86-
retries: 10
84+
timeout: 1s
85+
retries: 5
8786
mysql:
8887
profiles: [integration-test]
8988
image: mariadb:11.2.3

tests/integration/basket.env

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@ CTMS_CLIENT_SECRET=bogus_MzOWu8UMz5N6M4--2iX9jgJ05JX5MziH6KeH8dI6hrw # pragma:
99
DEBUG=True
1010
ALLOWED_HOSTS=*
1111
SECRET_KEY=sssssssshhhhhhhhhh # pragma: allowlist secret
12-
CELERY_TASK_ALWAYS_EAGER=False
13-
CELERY_NUM_WORKERS=1
14-
# CELERY_POOL=prefork
15-
CELERY_LOG_LEVEL=debug
12+
RQ_IS_ASYNC=True
1613
DJANGO_LOG_LEVEL=DEBUG
1714
OAUTHLIB_INSECURE_TRANSPORT=1
1815
URLWAIT_TIMEOUT=30

0 commit comments

Comments
 (0)