testcontainers / testcontainers/testcontainers-java

Reusable container for different apps

Open
#2,011 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

resolution/acknowledged
Dominant language
Java
Stars
8.7k
Forks
1.9k
Avg merge
2d 17h
Merged PRs (30d)
9

Description

If one reusable database testcontainer uses in different apps, there is migrations conflict, because they both use same database "test", no matter what is set as database name in url

jdbc:tc:postgresql:11.5:///databasename

So it will be cool if there is self-cleaning mechanism or possibility to create database with specific name.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the JDBC URL example and trace how the PostgreSQL testcontainer selects its database name when reused by different apps. Reproduce the migration conflict with two applications, then verify that distinct database names or a self-cleaning mechanism prevent the conflict.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, java, postgresql
Domain
databases, testing
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.