liquibase
liquibase copied to clipboard
Add a functional test for the new searchPath option
As a community, we are doing a great job adding Unit and Integration tests.
However, when adding a new feature or capability, we need to start creating a higher-level functional test that ensures the capability continues to work as the codebase evolves.
This ticket is a request to add a functional test for the searchPath option.
next step: I will write out break condition to test for and pass along to test group
Test setting serarchPath using:
- liquibase.properties
liquibase.searchPath: path/to/your/resource/root
- CLI 'liquibase --search-path=path/to/your/resource/root'
- POM.xml
- ENV vars (for LB Pro) 'LIQUIBASE_SEARCH_PATH=path/to/your/resource/root' (Mac/Linux)
- JAVA system property
- changelog present outside of working directory where commands are running, LIQUIBASE_HOME/lib, liquibase_libs, and any classpath settings
- run liquibase validate without setting searchPath
- expected result: error, cannot find changelog location
- add searchPath
- run liquibase validate
- no errors in locating changelog
There are some existing searchPath
scenarios already added in SearchPathRegressionTests, but there some other from the requested ones here are not. We have created this ticket (internal) to keep track of that work.