Skip to content

Commit

Permalink
Test with schema name
Browse files Browse the repository at this point in the history
Signed-off-by: Brendan Cronin <[email protected]>
  • Loading branch information
bcronin90 committed Jun 8, 2023
1 parent 2956c78 commit 299e6fa
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ public class TestRuntimeConfiguration {
static final String SOKRATES_DATAPLANE_CONTROL_PORT = String.valueOf(getFreePort());

static final String SOKRATES_DATAPLANE_PROXY_PORT = String.valueOf(getFreePort());

static final String DB_SCHEMA_NAME = "testschema";

public static Map<String, String> sokratesPostgresqlConfiguration() {
var baseConfiguration = sokratesConfiguration();
Expand Down Expand Up @@ -95,7 +97,7 @@ public static Map<String, String> postgresqlConfiguration(String name) {
put("edc.datasource.edr.user", PostgresqlLocalInstance.USER);
put("edc.datasource.edr.password", PostgresqlLocalInstance.PASSWORD);
// use non-default schema name to test usage of non-default schema
put("org.eclipse.tractusx.edc.postgresql.migration.schema", "testschema");
put("org.eclipse.tractusx.edc.postgresql.migration.schema", DB_SCHEMA_NAME);
}
};
}
Expand Down Expand Up @@ -166,6 +168,6 @@ public static Map<String, String> platoConfiguration() {

@NotNull
public static String jdbcUrl(String name) {
return PostgresqlLocalInstance.JDBC_URL_PREFIX + name;
return PostgresqlLocalInstance.JDBC_URL_PREFIX + name + "?currentSchema=" + DB_SCHEMA_NAME;
}
}

0 comments on commit 299e6fa

Please sign in to comment.