1

I would like to create integration test, which should use two postgres test containers for different databases.

The problem: Need to use different liquibase sets for different test containers.

Current situation: Tests are using liquibase set which is identified by default in the application and this is okay, but I can not assign the second liquibase scheme to the second test container DB.

Expected behavoiur: **SpringBootTest will run two test containers with differnt liquibase schemes. **

  • share some code to view what you did and why it's not working for you – bilak Apr 14 '23 at 08:42
  • If you are using two databases in your application, you need to build an additional DataSource and Liquibase configuration besides from the primary configuration. – Eddú Meléndez Apr 17 '23 at 01:33
  • You can check this question: https://stackoverflow.com/questions/43523971/how-to-set-up-liquibase-in-spring-for-multiple-data-sources – yuppie-flu Apr 17 '23 at 19:07

0 Answers0