-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test case for mysqldump deprecation (#54)
* Add test case for mysqldump deprecation This is a test for a proposed change to lando/core, to address #47. * Improve mysqldump deprecation test Make better use of `grep` in the test, and direct output of dump command to STDOUT so the test doesn't generate export files. * #47: Test a db-export type tooling command. * #47: Make sure we actually add the test. * #47: Better name for the test. * Make checklinks happy. * Make checklinks happy. --------- Co-authored-by: Alec Reynolds <alec+git@lando.dev>
- Loading branch information
1 parent
223a531
commit e1ee8c2
Showing
5 changed files
with
65 additions
and
4 deletions.
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
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 @@ | ||
name: lando-mariadb-tooling | ||
services: | ||
database: | ||
type: mariadb:11.3 | ||
tooling: | ||
'db-export-test [file]': | ||
service: :host | ||
cmd: '/helpers/sql-export.sh' | ||
user: 'root' | ||
options: | ||
host: | ||
description: The database service to use | ||
default: database | ||
alias: | ||
- h | ||
stdout: | ||
description: Dump database to stdout | ||
|
||
# This is important because it lets lando know to test against the plugin in this repo | ||
# DO NOT REMOVE THIS! | ||
plugins: | ||
"@lando/mariadb": ../.. |
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,38 @@ | ||
MariaDB Tooling Example | ||
======================= | ||
|
||
This example exists primarily to test the following documentation: | ||
|
||
* [MariaDB Service](https://docs.devwithlando.io/tutorials/mariadb.html) | ||
|
||
Start up tests | ||
-------------- | ||
|
||
Run the following commands to get up and running with this example. | ||
|
||
```bash | ||
# Should start up successfully | ||
lando poweroff | ||
lando start | ||
``` | ||
|
||
Verification commands | ||
--------------------- | ||
|
||
Run the following commands to validate things are rolling as they should. | ||
|
||
```bash | ||
# Should not see deprecation warning on db-export | ||
lando db-export-test --stdout | grep -vz "Deprecated" | ||
``` | ||
|
||
Destroy tests | ||
------------- | ||
|
||
Run the following commands to trash this app like nothing ever happened. | ||
|
||
```bash | ||
# Should be destroyed with success | ||
lando destroy -y | ||
lando poweroff | ||
``` |