liquibase icon indicating copy to clipboard operation
liquibase copied to clipboard

Add a functional test for the new searchPath option

Open kevin-atx opened this issue 2 years ago • 2 comments

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.

kevin-atx avatar Aug 23 '22 14:08 kevin-atx

next step: I will write out break condition to test for and pass along to test group

kataggart avatar Aug 24 '22 14:08 kataggart

Test setting serarchPath using:

  1. liquibase.properties liquibase.searchPath: path/to/your/resource/root
  2. CLI 'liquibase --search-path=path/to/your/resource/root'
  3. POM.xml
  4. ENV vars (for LB Pro) 'LIQUIBASE_SEARCH_PATH=path/to/your/resource/root' (Mac/Linux)
  5. 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

kataggart avatar Sep 02 '22 20:09 kataggart

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.

MalloD12 avatar Nov 23 '23 17:11 MalloD12