From 1cc5e9c15c98b76a054032ef9453bf50e4126852 Mon Sep 17 00:00:00 2001 From: Justin Terry Date: Wed, 4 Dec 2024 12:00:34 -0800 Subject: [PATCH] Test on postgres 17 --- docker-compose.test.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/docker-compose.test.yml b/docker-compose.test.yml index 0288e167..c3a44366 100644 --- a/docker-compose.test.yml +++ b/docker-compose.test.yml @@ -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 @@ -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: @@ -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 @@ -97,4 +97,4 @@ services: restart: on-failure volumes: - test_database_data_12: + test_database_data_17: