diff --git a/src/test/java/net/hostsharing/hsadminng/hs/migration/LiquibaseCompatibilityIntegrationTest.java b/src/test/java/net/hostsharing/hsadminng/hs/migration/LiquibaseCompatibilityIntegrationTest.java index d3cbb817..64841f6e 100644 --- a/src/test/java/net/hostsharing/hsadminng/hs/migration/LiquibaseCompatibilityIntegrationTest.java +++ b/src/test/java/net/hostsharing/hsadminng/hs/migration/LiquibaseCompatibilityIntegrationTest.java @@ -112,13 +112,13 @@ public class LiquibaseCompatibilityIntegrationTest { final var sqlDumpFile = new File(targetFileName.getParent(), "." + targetFileName.getName()); final var pb = new ProcessBuilder( "pg_dump", "--column-inserts", "--disable-dollar-quoting", - "--host=" + getJdbcDatabaseContainer().getHost(), + "--host=" + jdbcDatabaseContainer.getHost(), "--port=" + jdbcDatabaseContainer.getFirstMappedPort(), - "--username=" + getJdbcDatabaseContainer().getUsername() , + "--username=" + jdbcDatabaseContainer.getUsername() , "--dbname=" + jdbcDatabaseContainer.getDatabaseName(), "--file=" + sqlDumpFile.getCanonicalPath() ); - pb.environment().put("PGPASSWORD", getJdbcDatabaseContainer().getPassword()); + pb.environment().put("PGPASSWORD", jdbcDatabaseContainer.getPassword()); final var process = pb.start(); int exitCode = process.waitFor(); @@ -138,11 +138,8 @@ public class LiquibaseCompatibilityIntegrationTest { -- CREATE ROLE postgres; - CREATE ROLE admin; - GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO admin; CREATE ROLE restricted; - GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO restricted; """; writeStringToFile(targetFileName, header, UTF_8, false); // false = overwrite