Skip to content

Latest commit

 

History

History
53 lines (41 loc) · 1.77 KB

File metadata and controls

53 lines (41 loc) · 1.77 KB

embedded-vertica

Maven dependency

pom.xml
<dependency>
    <groupId>com.playtika.testcontainers</groupId>
    <artifactId>embedded-vertica</artifactId>
    <scope>test</scope>
</dependency>

Consumes (via bootstrap.properties)

  • 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')

  • 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 the embedded-vertica container.

Produces

  • 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

Notes

  • You can enable debug logs for testcontainer category to troubleshoot issues

Example

To auto-configure data source use these properties in your test application.properties:

/src/test/resources/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}