GitXplorerGitXplorer
B

mysql-testcontainers-liqui-demo

public
1 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
1e681f06c8e7290400443028dbb07643c4775eae

Refactor test configuration

BBoiarshinov committed 4 years ago
Unverified
608dafbbe8bc3710b93f3aaca6947990b561049a

Add comment

BBoiarshinov committed 4 years ago
Unverified
7203e7f81ebff1dd2c10218c6e1888b445643051

Add testing on testcontainers instead of real db

BBoiarshinov committed 4 years ago
Unverified
39539b480562c696210c1defa2c92d80d81acaf2

Add datasource config for tests

BBoiarshinov committed 4 years ago
Unverified
4563c268b0ec1cc827769779d9d416a7302c3472

Add getById test

BBoiarshinov committed 4 years ago
Unverified
8af8b8484b2df1b9b15ff4a63e6daf59c581bcce

Update delete to truncate to reset primary key sequence

BBoiarshinov committed 4 years ago

README

The README file for this repository.

MySQL - Testcontainers - Liquibase Demo

In this project I'm trying to run mysql testcontainer with liquibase migrations in test environment.

App preparation

You should have docker (I'm using v.20.10.5 for this demo).
Run in bash (convert it to powershell if you're on windows):

 docker container run \
 -d \
 -p 3306:3306 \
 -e MYSQL_USER=user \
 -e MYSQL_DATABASE=first_schema \
 -e MYSQL_PASSWORD=pass \
 -e MYSQL_ROOT_PASSWORD=remote236 \
 --name mysql-demo mysql