Tests are sometimes failing while trying to pull images
from dockerhub, due to rate limiting. Switching to nordix
mirror may fix it.
Issue-ID: POLICY-5472
Change-Id: I6df2a2481778f1061967b43c33c77ca341867094
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
 import org.testcontainers.containers.PostgreSQLContainer;
 import org.testcontainers.junit.jupiter.Container;
 import org.testcontainers.junit.jupiter.Testcontainers;
+import org.testcontainers.utility.DockerImageName;
 
 /**
  * This test enables Hibernate validation during context startup.
 class HibernateValidationTest {
 
     @Container
-    static PostgreSQLContainer<?> postgres = new PostgreSQLContainer<>("postgres:16");
+    private static final PostgreSQLContainer<?> postgres = new PostgreSQLContainer<>(
+            DockerImageName.parse("registry.nordix.org/onaptest/postgres:14.1").asCompatibleSubstituteFor("postgres"));
 
     @DynamicPropertySource
     static void overrideProperties(DynamicPropertyRegistry registry) {
 
 import org.testcontainers.containers.PostgreSQLContainer;
 import org.testcontainers.junit.jupiter.Container;
 import org.testcontainers.junit.jupiter.Testcontainers;
+import org.testcontainers.utility.DockerImageName;
 
 // This test class verifies that rollbacks for each Liquibase release tag works correctly.
 @Testcontainers
 class LiquibaseRollbackTest {
 
     @Container
-    private static final PostgreSQLContainer<?> postgres = new PostgreSQLContainer<>("postgres:16");
+    private static final PostgreSQLContainer<?> postgres = new PostgreSQLContainer<>(
+            DockerImageName.parse("registry.nordix.org/onaptest/postgres:14.1").asCompatibleSubstituteFor("postgres"));
 
     private Liquibase liquibase;