summaryrefslogtreecommitdiff
path: root/yarns/0030-basics.yarn
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2014-01-12 10:29:02 +0000
committerLars Wirzenius <liw@liw.fi>2014-01-12 10:29:02 +0000
commitdff58cd5e33003fdf3eb73549c450b76838c6cbe (patch)
tree747c820bab9f2465815971227f3ab51d0335e681 /yarns/0030-basics.yarn
parente65bdd1e04d01f3ef1e842f10d52e261050b599e (diff)
downloadobnam-dff58cd5e33003fdf3eb73549c450b76838c6cbe.tar.gz
Add test for multiple clients sharing a repository
As part of this, make every repository operation step require an explicit client name. The v6 reference formats have a client name embedded that is the hostname of my laptop, so make those tests use that name. This fixes what would not have run previously on any system that isn't named havelock. Oops.
Diffstat (limited to 'yarns/0030-basics.yarn')
-rw-r--r--yarns/0030-basics.yarn18
1 files changed, 9 insertions, 9 deletions
diff --git a/yarns/0030-basics.yarn b/yarns/0030-basics.yarn
index e5007487..3324dc45 100644
--- a/yarns/0030-basics.yarn
+++ b/yarns/0030-basics.yarn
@@ -20,10 +20,10 @@ program must be able to handle.
SCENARIO backup simple data
GIVEN 100kB of new data in directory L
AND a manifest of directory L in M
- WHEN user backs up directory L to repository R
- AND user restores their latest generation in repository R into X
+ WHEN user U backs up directory L to repository R
+ AND user U restores their latest generation in repository R into X
THEN L, restored to X, matches manifest M
- AND user can fsck the repository R
+ AND user U can fsck the repository R
Backup sparse files
-------------------
@@ -47,8 +47,8 @@ more disk space than the one in live data.
SCENARIO backup a sparse file
GIVEN a file S in L, with a hole, data, a hole
AND a manifest of directory L in M
- WHEN user backs up directory L to repository R
- AND user restores their latest generation in repository R into X
+ WHEN user U backs up directory L to repository R
+ AND user U restores their latest generation in repository R into X
THEN L, restored to X, matches manifest M
AND file S from L, restored in X doesn't use more disk
@@ -82,8 +82,8 @@ duplication.
SCENARIO backup non-basic filesystem objects
GIVEN directory L with interesting filesystem objects
AND a manifest of directory L in M
- WHEN user backs up directory L to repository R
- AND user restores their latest generation in repository R into X
+ WHEN user U backs up directory L to repository R
+ AND user U restores their latest generation in repository R into X
THEN L, restored to X, matches manifest M
Pretend backing up: the `--pretend` setting
@@ -96,8 +96,8 @@ than a real one.
SCENARIO a pretend backup
GIVEN directory L with interesting filesystem objects
- WHEN user backs up directory L to repository R
+ WHEN user U backs up directory L to repository R
GIVEN a manifest of directory R in M1
- WHEN user pretends to back up directory L to repository R
+ WHEN user U pretends to back up directory L to repository R
GIVEN a manifest of directory R in M2
THEN manifests M1 and M2 match