Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Integration Tests using Tescontainers #215

Open
S-Tim opened this issue Jun 16, 2023 · 0 comments
Open

Create Integration Tests using Tescontainers #215

S-Tim opened this issue Jun 16, 2023 · 0 comments

Comments

@S-Tim
Copy link
Contributor

S-Tim commented Jun 16, 2023

It would be beneficial to an integration test setup that could utilize Testcontainers. For example the single node MariaDB scenario would benefit from such a setup That way it could use the same migration scripts in the tests as it does in when run normally.

An example for a mariab test profile could look like this:
application-mariadb.yml

spring:
  datasource:
    url: jdbc:h2:mem:public;MODE=MySQL;CASE_INSENSITIVE_IDENTIFIERS=TRUE;INIT=create schema if not exists PUBLIC;DB_CLOSE_DELAY=-1;NON_KEYWORDS=VALUE;DB_CLOSE_ON_EXIT=FALSE
    driver-class-name: org.h2.Driver
  jpa:
    database-platform: org.hibernate.dialect.MariaDB103Dialect

Unfortunately using the MariaDB compatibility mode of H2 is currently not possible with the Camunda initialization scripts because it seems that the syntax for creating indices is not fully supported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant