mirror of
https://github.com/YunoHost-Apps/mattermost_ynh.git
synced 2024-09-03 19:36:29 +02:00
tests: use a named backup
This commit is contained in:
parent
039ae2b1ab
commit
b7e3913fd7
1 changed files with 2 additions and 3 deletions
5
test.sh
5
test.sh
|
@ -136,7 +136,7 @@ function test_simple_upgrade() {
|
||||||
|
|
||||||
function test_simple_backup() {
|
function test_simple_backup() {
|
||||||
echo "--- Running simple backup test ---"
|
echo "--- Running simple backup test ---"
|
||||||
_vagrant_ssh "sudo yunohost backup create --ignore-hooks --apps $APP_NAME $VERBOSE_OPT"
|
_vagrant_ssh "sudo yunohost backup create --name mattermost-test-backup --ignore-hooks --apps $APP_NAME $VERBOSE_OPT"
|
||||||
}
|
}
|
||||||
|
|
||||||
function test_simple_remove() {
|
function test_simple_remove() {
|
||||||
|
@ -146,8 +146,7 @@ function test_simple_remove() {
|
||||||
|
|
||||||
function test_simple_restore() {
|
function test_simple_restore() {
|
||||||
echo "--- Running simple restore test ---"
|
echo "--- Running simple restore test ---"
|
||||||
_vagrant_ssh "sudo yunohost backup list | cut -d ' ' -f 2 > backup_name"
|
_vagrant_ssh "sudo yunohost backup restore mattermost-test-backup --force --ignore-hooks --apps $APP_NAME $VERBOSE_OPT"
|
||||||
_vagrant_ssh "sudo yunohost backup restore \$(cat backup_name) --force --ignore-hooks --apps $APP_NAME $VERBOSE_OPT"
|
|
||||||
_assert_mattermost_frontpage_up "$DOMAIN"
|
_assert_mattermost_frontpage_up "$DOMAIN"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue