mirror of
https://github.com/google/nomulus.git
synced 2025-07-27 13:06:27 +02:00
Require explict tag when starting psql docker (#368)
* Require explict tag when starting psql docker Defined a util class to return docker tag of desired PSQL version. Class is defined in ':db' and shared by ':db' and ':core'. Used an artifact declaration to exclude unnecesary compile dependencies. Added a presubmit check for instantiations without explicit tag.
This commit is contained in:
parent
2cc2571375
commit
365c5da942
10 changed files with 69 additions and 7 deletions
|
@ -19,6 +19,7 @@ import static google.registry.testing.TextDiffSubject.assertThat;
|
|||
|
||||
import com.google.common.base.Joiner;
|
||||
import com.google.common.io.Resources;
|
||||
import google.registry.persistence.NomulusPostgreSql;
|
||||
import java.io.File;
|
||||
import java.net.URL;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
|
@ -54,7 +55,7 @@ public class SchemaTest {
|
|||
*/
|
||||
@Rule
|
||||
public PostgreSQLContainer sqlContainer =
|
||||
new PostgreSQLContainer<>("postgres:9.6.12")
|
||||
new PostgreSQLContainer<>(NomulusPostgreSql.getDockerTag())
|
||||
.withClasspathResourceMapping(
|
||||
MOUNTED_RESOURCE_PATH, CONTAINER_MOUNT_POINT, BindMode.READ_WRITE);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue