Closes#45221
Signed-off-by: Pedro Ruivo <1492066+pruivo@users.noreply.github.com>
Co-authored-by: Pedro Ruivo <1492066+pruivo@users.noreply.github.com>
* Refactor test database config in the new framework
Closes#41319
Signed-off-by: Simon Vacek <simonvacky@email.cz>
# Conflicts:
# tests/base/src/test/java/org/keycloak/tests/db/CaseSensitiveSchemaTest.java
# tests/base/src/test/java/org/keycloak/tests/db/PreserveSchemaCaseLiquibaseTest.java
* Moved test method to the abstract class
Signed-off-by: Simon Vacek <simonvacky@email.cz>
* Conform to conventions
Signed-off-by: Simon Vacek <simonvacky@email.cz>
* Add lifecycle class to custom DBs to prevent containers with re-use from running after tests
Signed-off-by: Stian Thorgersen <stian@redhat.com>
---------
Signed-off-by: Simon Vacek <simonvacky@email.cz>
Signed-off-by: Stian Thorgersen <stian@redhat.com>
Co-authored-by: Stian Thorgersen <stian@redhat.com>
* Add DatabaseConfig to TestDatabase so the underlying DB can be
configured per test
* Allow DB initScripts to be configured by tests
Closes#40784Closes#41105
Signed-off-by: Ryan Emerson <remerson@redhat.com>
Signed-off-by: Alexander Schwartz <aschwart@redhat.com>
Co-authored-by: Alexander Schwartz <aschwart@redhat.com>
Closes#39965
Signed-off-by: Ryan Emerson <remerson@redhat.com>
Signed-off-by: Michal Hajas <mhajas@redhat.com>
Co-authored-by: Michal Hajas <mhajas@redhat.com>