Skip to content

Commit

Permalink
Switch to latest tag of postgres image for tests (#69)
Browse files Browse the repository at this point in the history
The edgefulldata tag contained test data as part of the image. The
latest tag does not contain any data. This commit switches to the
maintained latest tag and crates the schema and minimal test data for
the tests.
  • Loading branch information
fwilhe authored Jan 9, 2025
1 parent 94e5c05 commit 68a4533
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 68a4533

Please sign in to comment.