Skip to content

patrick-vonsteht/quarkus-test-containers-test-profiles-switch-bug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Quarkus: Postgres TestContainer fails when switching test profiles

This is a minimal example to illustrate the following bug:

Setup:

  • You have two QuarkusTests
  • The QuarkusTests use different TestProfiles.
  • Both QuarkusTests start a postgres container through a QuarkusTestResourceLifecycleManager.

Result:

  • The first test runs successfully.
  • The second test fails with "java.sql.SQLException: No suitable driver found for jdbc:postgresql://localhost:55723/vintageStoreDB?loggerLevel=OFF"

Expected Result:

  • Both tests run successfully.

Working Scenario:

  • If you edit the second test to use the same TestProfile as the first one, everything works.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages