-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Derek Smart <[email protected]>
- Loading branch information
Showing
13 changed files
with
200 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
tests: | ||
- "can add one package": | ||
command: lpm add liquibase-postgresql | ||
stdout: | ||
contains: liquibase-postgresql-4.4.1.jar successfully installed in classpath. | ||
- "verify one package": | ||
command: stat ./liquibase_modules/liquibase-postgresql-4.4.1.jar | ||
- "can add multi packages": | ||
command: lpm add postgresql mysql mssql | ||
stdout: | ||
contains: | ||
- postgresql-42.2.23.jar successfully installed in classpath. | ||
- mysql-connector-java-8.0.25.jar successfully installed in classpath. | ||
- mssql-jdbc-9.2.1.jre11.jar successfully installed in classpath. | ||
- "verify multi packages": | ||
command: stat ./liquibase_modules/mssql-jdbc-9.2.1.jre11.jar | ||
- "can add specific version": | ||
command: lpm add [email protected] | ||
stdout: | ||
contains: liquibase-percona-4.3.1.jar successfully installed in classpath. | ||
- "verify specific version": | ||
command: stat ./liquibase_modules/liquibase-percona-4.3.1.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
tests: | ||
- "can run clean liquibase_modules": | ||
command: rm -Rf $PWD/liquibase_modules | ||
env: | ||
get: | ||
- PWD | ||
- "can remove liquibase.json": | ||
command: rm liquibase.json | ||
env: | ||
get: | ||
- PWD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
tests: | ||
- "can generate bash completion": | ||
command: lpm completion bash | ||
stdout: | ||
contains: | ||
- bash completion V2 for lpm | ||
- __lpm_handle_standard_completion_case() | ||
- "can generate zfs completion": | ||
command: lpm completion zsh | ||
stdout: | ||
contains: | ||
- zsh completion for lpm | ||
- __lpm_debug() | ||
- "can generate fish completion": | ||
command: lpm completion fish | ||
stdout: | ||
contains: | ||
- fish completion for lpm | ||
- function __lpm_debug | ||
- function __lpm_perform_completion | ||
- "can generate powershell completion": | ||
command: lpm completion powershell | ||
stdout: | ||
contains: | ||
- powershell completion for lpm | ||
- function __lpm_debug | ||
- Register-ArgumentCompleter -CommandName 'lpm' -ScriptBlock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
tests: | ||
- "can get help output": | ||
command: lpm --help | ||
stdout: | ||
contains: | ||
- Easily manage external dependencies for Database Development. | ||
- Search for, install, and uninstall liquibase drivers, extensions, and utilities. | ||
- lpm [command] | ||
- add Add Packages | ||
- completion generate the autocompletion script for the specified shell | ||
- help Help about any command | ||
- install Install Packages from liquibase.json | ||
- list List Installed Packages | ||
- remove Removes Package | ||
- search Search for Packages | ||
- update Updates the Package Manifest | ||
- --category string extension, driver, or utility |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
tests: | ||
- "can remove installed packages": | ||
command: rm -Rf ./liquibase_modules | ||
- "can install packages from liquibase.json": | ||
command: lpm install | ||
- "verify installed packages": | ||
command: stat ./liquibase_modules/liquibase-percona-4.3.1.jar ./liquibase_modules/postgresql-42.2.23.jar ./liquibase_modules/mssql-jdbc-9.2.1.jre11.jar ./liquibase_modules/mysql-connector-java-8.0.25.jar ./liquibase_modules/liquibase-postgresql-4.4.1.jar | ||
stdout: | ||
contains: | ||
- ./liquibase_modules/liquibase-percona-4.3.1.jar | ||
- ./liquibase_modules/postgresql-42.2.23.jar | ||
- ./liquibase_modules/mssql-jdbc-9.2.1.jre11.jar | ||
- ./liquibase_modules/mysql-connector-java-8.0.25.jar | ||
- ./liquibase_modules/liquibase-postgresql-4.4.1.jar | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
tests: | ||
- "can list installed packages": | ||
command: lpm ls | ||
stdout: | ||
contains: | ||
- Package Category | ||
- ├── [email protected] driver | ||
- ├── [email protected] driver | ||
- ├── [email protected] driver | ||
- ├── [email protected] extension | ||
- └── [email protected] extension |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
tests: | ||
- "can remove one package": | ||
command: lpm remove postgresql | ||
stdout: postgresql-42.2.23.jar successfully uninstalled from classpath. | ||
- "verify one package removed": | ||
command: stat ./liquibase_modules/postgresql-42.2.23.jar | ||
exitValue: 1 | ||
- "can remove multi packages": | ||
command: lpm rm mssql mysql liquibase-percona | ||
stdout: |- | ||
mssql-jdbc-9.2.1.jre11.jar successfully uninstalled from classpath. | ||
mysql-connector-java-8.0.25.jar successfully uninstalled from classpath. | ||
liquibase-percona-4.3.1.jar successfully uninstalled from classpath. | ||
- "verify multi packages removed": | ||
command: stat ./liquibase_modules/mssql-jdbc-9.2.1.jre11.jar ./liquibase_modules/mysql-connector-java-8.0.25.jar ./liquibase_modules/liquibase-percona-4.3.1.jar | ||
exitValue: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
tests: | ||
- "can search all": | ||
command: lpm search | ||
stout: | ||
contains: | ||
- ├── mysql driver | ||
- ├── liquibase-cache extension | ||
- ├── [email protected] extension | ||
- "can search drivers": | ||
command: [lpm, search, --category, driver] | ||
stdout: | ||
contains: | ||
- ├── mssql driver | ||
excludes: | ||
- ├── liquibase-cache extension | ||
- "can search extensions": | ||
command: [lpm, search, --category, extension] | ||
stdout: | ||
contains: ├── liquibase-cache extension | ||
excludes: ├── mysql driver | ||
- "can search by term": | ||
command: lpm search sql | ||
stdout: | ||
contains: | ||
- ├── liquibase-mssql extension | ||
- ├── sqlite driver | ||
excludes: | ||
- ├── liquibase-teradata extension | ||
- ├── mariadb driver |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
//TODO implement after open source and actual URL is public |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
tests: | ||
- "can get proper version from lpm": | ||
command: lpm --version | ||
stdout: lpm (Liquibase Package Manager) version $VERSION | ||
env: | ||
get: | ||
- VERSION |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Ignore everything in this directory | ||
* | ||
# Except this file | ||
!.gitignore |