<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.enabledEnables both creation of the container with ToxiProxy TCP proxy and a proxy to theembedded-verticacontainer.
-
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
-
You can enable debug logs for
testcontainercategory to troubleshoot issues -
You need to have local image registry mirror with image to run vertica test container since vertica does not support community.
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}