Browse Source

Fix PostgresqlDatabaseContainerProvider get Image is incorrect (#15434)

3.2.1-prepare
Wenjun Ruan 10 months ago committed by GitHub
parent
commit
dcf69cad20
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 3
      dolphinscheduler-tools/src/test/java/org/apache/dolphinscheduler/tools/datasource/postgresql/PostgresqlDatabaseContainerProvider.java

3
dolphinscheduler-tools/src/test/java/org/apache/dolphinscheduler/tools/datasource/postgresql/PostgresqlDatabaseContainerProvider.java

@ -40,7 +40,8 @@ public class PostgresqlDatabaseContainerProvider implements DatabaseContainerPro
@Override @Override
public GenericContainer<?> getContainer(DolphinSchedulerDatabaseContainer dataSourceContainer) { public GenericContainer<?> getContainer(DolphinSchedulerDatabaseContainer dataSourceContainer) {
// todo: test with multiple pg version // todo: test with multiple pg version
GenericContainer<?> postgresqlContainer = new PostgreSQLContainer(DockerImageName.parse("postgres:11.1")) GenericContainer<?> postgresqlContainer =
new PostgreSQLContainer(DockerImageName.parse(dataSourceContainer.imageName()))
.withUsername("root") .withUsername("root")
.withPassword("root") .withPassword("root")
.withDatabaseName("dolphinscheduler") .withDatabaseName("dolphinscheduler")

Loading…
Cancel
Save