Skip to content

Commit

Permalink
add init script for test db
Browse files Browse the repository at this point in the history
  • Loading branch information
apriltuesday committed Feb 7, 2024
1 parent 5073d00 commit d744c39
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ public class SubmissionWSIntegrationTest {
private GlobusDirectoryProvisioner globusDirectoryProvisioner;

@Container
static PostgreSQLContainer<?> postgreSQLContainer = new PostgreSQLContainer<>("postgres:9.6");
static PostgreSQLContainer<?> postgreSQLContainer = new PostgreSQLContainer<>("postgres:9.6")
.withInitScript("init.sql");

@DynamicPropertySource
static void dataSourceProperties(DynamicPropertyRegistry registry) {
Expand Down
1 change: 1 addition & 0 deletions src/test/resources/init.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CREATE SCHEMA IF NOT EXISTs eva_submissions;

0 comments on commit d744c39

Please sign in to comment.