You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -231,22 +231,22 @@ The `@AutoConfigureEmbeddedDatabase` annotation can be used for some basic confi
231
231
The following configuration keys are used by all providers:
232
232
233
233
```properties
234
-
embedded-database.provider=zonky # Provider used to create the underlying embedded database, see the documentation for the comparision matrix.
235
-
embedded-database.postgres.client.properties.*= # Additional properties used to configure the test data source.
236
-
embedded-database.postgres.initdb.properties.*= # Additional properties to pass to initdb command during the database initialization.
237
-
embedded-database.postgres.server.properties.*= # Additional properties used to configure the embedded PostgreSQL server.
234
+
zonky.test.database.provider=zonky # Provider used to create the underlying embedded database, see the documentation for the comparision matrix.
235
+
zonky.test.database.postgres.client.properties.*= # Additional properties used to configure the test data source.
236
+
zonky.test.database.postgres.initdb.properties.*= # Additional properties to pass to initdb command during the database initialization.
237
+
zonky.test.database.postgres.server.properties.*= # Additional properties used to configure the embedded PostgreSQL server.
238
238
```
239
239
240
240
Note that the library includes [configuration metadata](embedded-database-spring-test/src/main/resources/META-INF/spring-configuration-metadata.json) that offer contextual help and code completion as users are working with Spring Boot's `application.properties` or `application.yml` files.
zonky.test.database.postgres.docker.tmpfs.enabled=false # Whether to mount postgres data directory as tmpfs.
402
+
zonky.test.database.postgres.docker.tmpfs.options=rw,noexec,nosuid # Mount options used to configure the tmpfs filesystem.
403
403
```
404
404
405
405
### Using OpenTable Provider
@@ -477,20 +477,20 @@ public class YandexProviderIntegrationTest {
477
477
478
478
#### Yandex-specific provider configuration
479
479
480
-
The provider configuration can be controlled by properties in the `embedded-database.postgres.yandex-provider` group.
480
+
The provider configuration can be controlled by properties in the `zonky.test.database.postgres.yandex-provider` group.
481
481
482
482
```properties
483
-
embedded-database.postgres.yandex-provider.postgres-version=10.6-1 # Version of EnterpriseDB PostgreSQL binaries (https://www.enterprisedb.com/download-postgresql-binaries).
483
+
zonky.test.database.postgres.yandex-provider.postgres-version=10.6-1 # Version of EnterpriseDB PostgreSQL binaries (https://www.enterprisedb.com/download-postgresql-binaries).
484
484
```
485
485
486
486
### Database Prefetching
487
487
488
-
Database prefetching is used to speed up the database initialization. It can be customized by properties in the `embedded-database.prefetching` group.
488
+
Database prefetching is used to speed up the database initialization. It can be customized by properties in the `zonky.test.database.prefetching` group.
489
489
490
490
```properties
491
-
embedded-database.prefetching.thread-name-prefix=prefetching- # Prefix to use for the names of database prefetching threads.
492
-
embedded-database.prefetching.concurrency=3 # Maximum number of concurrently running database prefetching threads.
493
-
embedded-database.prefetching.pipeline-cache-size=3 # Maximum number of prepared databases per pipeline.
491
+
zonky.test.database.prefetching.thread-name-prefix=prefetching- # Prefix to use for the names of database prefetching threads.
492
+
zonky.test.database.prefetching.concurrency=3 # Maximum number of concurrently running database prefetching threads.
493
+
zonky.test.database.prefetching.pipeline-cache-size=3 # Maximum number of prepared databases per pipeline.
494
494
```
495
495
496
496
### Disabling auto-configuration
@@ -620,7 +620,7 @@ Since version 1.4.0, database prefetching has been improved. All databases are s
620
620
It speeds up the preparation of databases, but in some rare cases, if your database scripts use some global objects inappropriately, this change can cause problems. If necessary, you can change this behavior back by setting the following property:
embeddedPostgresVersions = ['9.3.25', '9.4.20', '9.5.15', '9.6.11', '10.6.0'] // TODO: OpenTable and Yandex providers don't support Postgres11+ on Linux Platform
Copy file name to clipboardExpand all lines: embedded-database-spring-test/src/main/java/io/zonky/test/db/postgres/EmbeddedPostgresContextCustomizerFactory.java
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -61,6 +61,7 @@
61
61
62
62
importjavax.sql.DataSource;
63
63
importjava.lang.reflect.AnnotatedElement;
64
+
importjava.util.LinkedHashSet;
64
65
importjava.util.List;
65
66
importjava.util.Set;
66
67
importjava.util.concurrent.ConcurrentHashMap;
@@ -94,7 +95,7 @@ public ContextCustomizer createContextCustomizer(Class<?> testClass, List<Contex
Copy file name to clipboardExpand all lines: embedded-database-spring-test/src/main/java/io/zonky/test/db/provider/impl/DockerPostgresDatabaseProvider.java
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -65,13 +65,13 @@ public DatabaseInstance load(DatabaseConfig config) {
Copy file name to clipboardExpand all lines: embedded-database-spring-test/src/main/java/io/zonky/test/db/provider/impl/OpenTablePostgresDatabaseProvider.java
Copy file name to clipboardExpand all lines: embedded-database-spring-test/src/main/java/io/zonky/test/db/provider/impl/PrefetchingDatabaseProvider.java
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -79,9 +79,9 @@ public PrefetchingDatabaseProvider(ObjectProvider<List<DatabaseProvider>> databa
Copy file name to clipboardExpand all lines: embedded-database-spring-test/src/main/java/io/zonky/test/db/provider/impl/YandexPostgresDatabaseProvider.java
Copy file name to clipboardExpand all lines: embedded-database-spring-test/src/main/java/io/zonky/test/db/provider/impl/ZonkyPostgresDatabaseProvider.java
0 commit comments