Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Drawio
diagramDisplayName
borderfalse
diagramNameCPS DB Testing components diagram
simpleViewerfalse
widthlinksauto
tbstyleinline
lboxfalse
diagramWidth791
revision3

  • Docker provides a container with running database instance which is used during the test
  • Test container component communicates with Docker via CLI (or Engine API depending on Docker deployment),
    manages required container to be created/started before test and stopped/removed after the test is completed
  • Test container component is used by JUnit test as a Class Rule 
  • The connection to test database is served using standard Spring framework components 

...

Drawio
borderfalse
diagramNameCPS Test Containers life circle mgmt diagram
simpleViewerfalse
width
linksauto
tbstyleinline
lboxfalse
diagramDisplayName
diagramWidth681761
revision12

NB. The default testcontainer removal by default is served using dedicated RYUK container (part of TestContainers library). However 
this container require to bu running as privileged, so it was disabled in order make TestContainers available on Jenkins.

...