• Andy Wilkinson's avatar
    Ignore schema username when auto-configuring a test DB · 28ccf54b
    Andy Wilkinson authored
    Previously, when an embedded test database was being auto-configured
    any schema username and password specified by the user would result
    in a separate embedded test database being created to load the schema.
    This then left the actual test database without the schema causing
    test failures.
    
    This commit updates the test database auto-configuration to set the
    schema username to an empty string in a property source that's added
    first to the environment's property sources. This causes any schema
    username configured by the user to be ignored, preventing the creation
    of a separate database for schema.sql processing.
    
    Fixes gh-19321
    28ccf54b
Name
Last commit
Last update
..
spring-boot Loading commit data...
spring-boot-actuator Loading commit data...
spring-boot-actuator-autoconfigure Loading commit data...
spring-boot-autoconfigure Loading commit data...
spring-boot-cli Loading commit data...
spring-boot-dependencies Loading commit data...
spring-boot-devtools Loading commit data...
spring-boot-docs Loading commit data...
spring-boot-parent Loading commit data...
spring-boot-properties-migrator Loading commit data...
spring-boot-starters Loading commit data...
spring-boot-test Loading commit data...
spring-boot-test-autoconfigure Loading commit data...
spring-boot-tools Loading commit data...
pom.xml Loading commit data...