From 136251af65f644e480af0fd2322877b7be7c1dff Mon Sep 17 00:00:00 2001 From: oluwolenpbc <127983913+oluwolenpbc@users.noreply.github.com> Date: Thu, 12 Dec 2024 16:36:30 -0500 Subject: [PATCH] PLT-725 Updating postgres version for test containers (#1422) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## 🎫 Ticket https://jira.cms.gov/browse/PLT-725 ## 🛠 Changes To update test containers from postgres 11 to 16 ## ℹ️ Context We have updated the postgres databases to 16.4 and we need to update our test to reflect the same version. ## 🧪 Validation The e2e and unit test being successful will validate these changes. Co-authored-by: oluwolenpbc --- .../java/gov/cms/ab2d/common/util/AB2DPostgresqlContainer.java | 2 +- .../ab2d/coverage/util/AB2DCoveragePostgressqlContainer.java | 2 +- docker-compose.yml | 2 +- .../src/test/java/gov/cms/ab2d/AB2DPostgresqlContainer.java | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/common/src/test/java/gov/cms/ab2d/common/util/AB2DPostgresqlContainer.java b/common/src/test/java/gov/cms/ab2d/common/util/AB2DPostgresqlContainer.java index 5af5690ccf..2fc2053091 100644 --- a/common/src/test/java/gov/cms/ab2d/common/util/AB2DPostgresqlContainer.java +++ b/common/src/test/java/gov/cms/ab2d/common/util/AB2DPostgresqlContainer.java @@ -6,7 +6,7 @@ public class AB2DPostgresqlContainer extends PostgreSQLContainer { - private static final String IMAGE_VERSION = "postgres:11"; + private static final String IMAGE_VERSION = "postgres:16"; public AB2DPostgresqlContainer() { super(IMAGE_VERSION); diff --git a/coverage/src/test/java/gov/cms/ab2d/coverage/util/AB2DCoveragePostgressqlContainer.java b/coverage/src/test/java/gov/cms/ab2d/coverage/util/AB2DCoveragePostgressqlContainer.java index a72058e809..e0cf026529 100644 --- a/coverage/src/test/java/gov/cms/ab2d/coverage/util/AB2DCoveragePostgressqlContainer.java +++ b/coverage/src/test/java/gov/cms/ab2d/coverage/util/AB2DCoveragePostgressqlContainer.java @@ -5,7 +5,7 @@ public class AB2DCoveragePostgressqlContainer extends PostgreSQLContainer { - private static final String IMAGE_VERSION = "postgres:11"; + private static final String IMAGE_VERSION = "postgres:16"; public AB2DCoveragePostgressqlContainer() { super(IMAGE_VERSION); diff --git a/docker-compose.yml b/docker-compose.yml index 9b459ed994..c24064411f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,7 +2,7 @@ version: '2.4' services: db: - image: postgres:11 + image: postgres:16 command: postgres -c 'max_connections=1000' environment: - POSTGRES_DB=ab2d diff --git a/e2e-bfd-test/src/test/java/gov/cms/ab2d/AB2DPostgresqlContainer.java b/e2e-bfd-test/src/test/java/gov/cms/ab2d/AB2DPostgresqlContainer.java index a4d5295fc6..26dad9d220 100644 --- a/e2e-bfd-test/src/test/java/gov/cms/ab2d/AB2DPostgresqlContainer.java +++ b/e2e-bfd-test/src/test/java/gov/cms/ab2d/AB2DPostgresqlContainer.java @@ -6,7 +6,7 @@ public class AB2DPostgresqlContainer extends PostgreSQLContainer { - private static final String IMAGE_VERSION = "postgres:11"; + private static final String IMAGE_VERSION = "postgres:16"; public AB2DPostgresqlContainer() { super(IMAGE_VERSION);