Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
backupninja
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Liberate
backupninja
Commits
7800948c
Commit
7800948c
authored
Dec 31, 2020
by
Jérôme Charaoui
Browse files
Options
Downloads
Patches
Plain Diff
tests: Placeholder tests for rdiff
parent
bd25f93c
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!46
Add a testsuite
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/rdiff.bats
+31
-10
31 additions, 10 deletions
test/rdiff.bats
with
31 additions
and
10 deletions
test/rdiff.bats
+
31
−
10
View file @
7800948c
...
@@ -47,7 +47,23 @@ finish_rdiff() {
...
@@ -47,7 +47,23 @@ finish_rdiff() {
grep -q "Info: FINISHED: 1 actions run. 0 fatal. 0 error. 0 warning." "${BATS_TMPDIR}/log/backupninja.log"
grep -q "Info: FINISHED: 1 actions run. 0 fatal. 0 error. 0 warning." "${BATS_TMPDIR}/log/backupninja.log"
}
}
@test "remote destination backup action runs without errors" {
@test "local source/dest backup exists" {
skip "not implemented"
}
@test "local source/dest rdiff-backup options as expected" {
skip "not implemented"
}
@test "local source/dest backup ingests update" {
skip "not implemented"
}
@test "local source/dest backup appears valid" {
skip "not implemented"
}
@test "remote dest backup action runs without errors" {
setconfig backup.d/test.rdiff testconnect yes
setconfig backup.d/test.rdiff testconnect yes
setconfig backup.d/test.rdiff bwlimit 1250000
setconfig backup.d/test.rdiff bwlimit 1250000
setconfig backup.d/test.rdiff dest type remote
setconfig backup.d/test.rdiff dest type remote
...
@@ -58,13 +74,18 @@ finish_rdiff() {
...
@@ -58,13 +74,18 @@ finish_rdiff() {
grep -q "Info: FINISHED: 1 actions run. 0 fatal. 0 error. 0 warning." "${BATS_TMPDIR}/log/backupninja.log"
grep -q "Info: FINISHED: 1 actions run. 0 fatal. 0 error. 0 warning." "${BATS_TMPDIR}/log/backupninja.log"
}
}
@test "remote destination backup action with '--remove-older-than' runs without errors" {
@test "remote dest backup exists" {
setconfig backup.d/test.rdiff source keep 1
skip "not implemented"
setconfig backup.d/test.rdiff dest type remote
}
setconfig backup.d/test.rdiff dest host bntest1
setconfig backup.d/test.rdiff dest user vagrant
@test "remote dest rdiff-backup options as expected" {
run backupninja -f "${BATS_TMPDIR}/backupninja.conf" --now --run "${BATS_TMPDIR}/backup.d/test.rdiff"
skip "not implemented"
[ "$status" -eq 0 ]
}
grep -q "Info: FINISHED: 1 actions run. 0 fatal. 0 error. 0 warning." "${BATS_TMPDIR}/log/backupninja.log"
grep -q "Removing backups older than 1D days succeeded." "${BATS_TMPDIR}/log/backupninja.log"
@test "remote dest backup ingests update" {
skip "not implemented"
}
@test "remote dest backup appears valid" {
skip "not implemented"
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment