<dependency>
<groupId>com.playtika.testcontainers</groupId>
<artifactId>embedded-vertica</artifactId>
<scope>test</scope>
</dependency>
-
embedded.vertica.enabled
(true|false, default is true)
-
embedded.vertica.reuseContainer
(true|false, default is false)
-
embedded.vertica.dockerImage
(default is 'vertica/vertica-ce:24.1.0-0')
-
Image versions on dockerhub
-
-
embedded.vertica.waitTimeoutInSeconds
(default is 60 seconds)
-
embedded.toxiproxy.proxies.vertica.enabled
Enables both creation of the container with ToxiProxy TCP proxy and a proxy to theembedded-vertica
container.
-
embedded.vertica.port
(default is '5433')
-
embedded.vertica.host
(default is 'localhost')
-
embedded.vertica.database
(default is 'docker')
-
embedded.vertica.user
(default is 'dbadmin')
-
embedded.vertica.password
(default is "")
-
embedded.vertica.toxiproxy.host
-
embedded.vertica.toxiproxy.port
-
embedded.vertica.networkAlias
-
embedded.vertica.internalPort
-
Bean
ToxiproxyContainer.ContainerProxy verticaContainerProxy
To auto-configure data source
use these properties in your test application.properties
:
spring.datasource.driver-class-name=com.vertica.jdbc.Driver
spring.datasource.url=jdbc:vertica://${embedded.vertica.host}:${embedded.vertica.port}/${embedded.vertica.database}
spring.datasource.username=${embedded.vertica.user}
spring.datasource.password=${embedded.vertica.password}