Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test case for mysqldump deprecation #54

Merged
merged 7 commits into from
Jun 11, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/pr-mariadb-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
- examples/11.2
- examples/11.3
- examples/custom
- examples/tooling
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand Down
22 changes: 22 additions & 0 deletions examples/tooling/.lando.yml
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": ../..
38 changes: 38 additions & 0 deletions examples/tooling/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
MariaDB Example
reynoldsalec marked this conversation as resolved.
Show resolved Hide resolved
===============

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
```
Loading