|
16 | 16 | * specific language governing permissions and limitations
|
17 | 17 | * under the License.
|
18 | 18 | */
|
19 |
| - |
20 |
| -package org.apache.polaris.test.commons; |
| 19 | +package org.apache.polaris.commons; |
21 | 20 |
|
22 | 21 | import io.quarkus.test.common.DevServicesContext;
|
23 | 22 | import io.quarkus.test.common.QuarkusTestResourceLifecycleManager;
|
24 |
| - |
25 |
| -import java.util.List; |
26 |
| -import java.util.Map; |
27 |
| -import java.util.Arrays; |
28 | 23 | import java.util.ArrayList;
|
| 24 | +import java.util.Arrays; |
29 | 25 | import java.util.HashMap;
|
30 |
| - |
| 26 | +import java.util.List; |
| 27 | +import java.util.Map; |
31 | 28 | import org.testcontainers.containers.PostgreSQLContainer;
|
32 | 29 | import org.testcontainers.utility.DockerImageName;
|
33 | 30 |
|
@@ -72,24 +69,30 @@ public Map<String, String> start() {
|
72 | 69 | props.put(String.format("polaris.relation.jdbc.datasource.%s", database), database + "_ds");
|
73 | 70 | props.put(String.format("quarkus.datasource.%s.db-kind", database + "_ds"), "pgsql");
|
74 | 71 | props.put(String.format("quarkus.datasource.%s.active", database + "_ds"), "true");
|
75 |
| - props.put(String.format("quarkus.datasource.%s.jdbc.url", database + "_ds"), postgres.getJdbcUrl().replace("realm1", database)); |
76 |
| - props.put(String.format("quarkus.datasource.%s.username", database + "_ds"), postgres.getUsername()); |
77 |
| - props.put(String.format("quarkus.datasource.%s.password", database + "_ds"), postgres.getPassword()); |
| 72 | + props.put( |
| 73 | + String.format("quarkus.datasource.%s.jdbc.url", database + "_ds"), |
| 74 | + postgres.getJdbcUrl().replace("realm1", database)); |
| 75 | + props.put( |
| 76 | + String.format("quarkus.datasource.%s.username", database + "_ds"), |
| 77 | + postgres.getUsername()); |
| 78 | + props.put( |
| 79 | + String.format("quarkus.datasource.%s.password", database + "_ds"), |
| 80 | + postgres.getPassword()); |
78 | 81 | }
|
79 | 82 | } else {
|
80 | 83 | return Map.of(
|
81 |
| - "polaris.persistence.type", |
82 |
| - "relational-jdbc", |
83 |
| - "quarkus.datasource.db-kind", |
84 |
| - "pgsql", |
85 |
| - "quarkus.datasource.jdbc.url", |
86 |
| - postgres.getJdbcUrl(), |
87 |
| - "quarkus.datasource.username", |
88 |
| - postgres.getUsername(), |
89 |
| - "quarkus.datasource.password", |
90 |
| - postgres.getPassword(), |
91 |
| - "quarkus.datasource.jdbc.initial-size", |
92 |
| - "10"); |
| 84 | + "polaris.persistence.type", |
| 85 | + "relational-jdbc", |
| 86 | + "quarkus.datasource.db-kind", |
| 87 | + "pgsql", |
| 88 | + "quarkus.datasource.jdbc.url", |
| 89 | + postgres.getJdbcUrl(), |
| 90 | + "quarkus.datasource.username", |
| 91 | + postgres.getUsername(), |
| 92 | + "quarkus.datasource.password", |
| 93 | + postgres.getPassword(), |
| 94 | + "quarkus.datasource.jdbc.initial-size", |
| 95 | + "10"); |
93 | 96 | }
|
94 | 97 |
|
95 | 98 | return props;
|
|
0 commit comments