Skip to content

Commit

Permalink
Use ensure/destroy in run_basic_backup_create()
Browse files Browse the repository at this point in the history
  • Loading branch information
benhoyt committed Oct 20, 2020
1 parent 6bd4b75 commit 5489ca5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/suites/backup_restore/backup_restore.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
run_basic_backup_create() {
echo

file="${TEST_DIR}/test-basic-backup-create.log"

ensure "test-basic-backup-create" "${file}"

juju switch controller
juju create-backup --filename "${TEST_DIR}/basic_backup.tar.gz"

Expand All @@ -12,6 +16,8 @@ run_basic_backup_create() {
test -s "${TEST_DIR}/juju-backup/root.tar"
echo "checking oplog.bson is present"
test -s "${TEST_DIR}/juju-backup/dump/oplog.bson"

destroy_model "test-basic-backup-create"
}

run_basic_backup_restore() {
Expand Down

0 comments on commit 5489ca5

Please sign in to comment.