Skip to content

Commit

Permalink
Test on postgres 17
Browse files Browse the repository at this point in the history
  • Loading branch information
jterry64 committed Dec 4, 2024
1 parent 7be61b9 commit 1cc5e9c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions docker-compose.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ services:
environment:
- PYTHONPATH=batch/python
- ENV=test
- DB_HOST=test_database_12
- DB_HOST=test_database_17
- DATABASE=_test
- DB_USER=gfw
- DB_PASSWORD=postgres # pragma: allowlist secret
- DB_PORT=5432
- DB_HOST_RO=test_database_12
- DB_HOST_RO=test_database_17
- DATABASE_RO=_test
- DB_USER_RO=gfw_readonly
- DB_PASSWORD_RO=readonly # pragma: allowlist secret
Expand Down Expand Up @@ -68,12 +68,12 @@ services:
- AWS_SECRETSMANAGER_URL=http://motoserver:50000
entrypoint: wait_for_postgres.sh pytest --timeout 480 -vv --cov-report term
depends_on:
- test_database_12
- test_database_17
- motoserver

test_database_12:
container_name: gfw-data-api-test-database-12
image: postgis/postgis:12-3.3-alpine
test_database_17:
container_name: gfw-data-api-test-database-17
image: postgis/postgis:17-3.5-alpine
ports:
- 54321:5432
environment:
Expand All @@ -82,7 +82,7 @@ services:
- POSTGRES_USER=gfw
- POSTGRES_PASSWORD=postgres # pragma: allowlist secret
volumes:
- test_database_data_12:/var/lib/postgresql/data
- test_database_data_17:/var/lib/postgresql/data
command: ["postgres", "-c", "log_statement=all"]
restart: on-failure

Expand All @@ -97,4 +97,4 @@ services:
restart: on-failure

volumes:
test_database_data_12:
test_database_data_17:

0 comments on commit 1cc5e9c

Please sign in to comment.