Skip to content

Commit

Permalink
Setup minimal set of db test data
Browse files Browse the repository at this point in the history
  • Loading branch information
fwilhe committed Jan 9, 2025
1 parent c3fe545 commit 8b673eb
Show file tree
Hide file tree
Showing 4 changed files with 464 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/test/java/io/gardenlinux/glvd/GlvdControllerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ class GlvdControllerTest {
@ServiceConnection
static PostgreSQLContainer<?> postgres = new PostgreSQLContainer<>(glvdPostgresImage)
.withDatabaseName("glvd")
.withUsername("glvd").withPassword("glvd");
.withUsername("glvd")
.withPassword("glvd")
.withInitScripts("test-data/01-schema.sql", "test-data/02-sample-data.sql");

@LocalServerPort
private Integer port;
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/io/gardenlinux/glvd/TestConfig.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package io.gardenlinux.glvd;

public interface TestConfig {
String DbContainerImage = "ghcr.io/gardenlinux/glvd-postgres:edgefulldata";
String DbContainerImage = "ghcr.io/gardenlinux/glvd-postgres:latest";
}
Loading

0 comments on commit 8b673eb

Please sign in to comment.